Fixed issue #392.
This commit is contained in:
parent
cd234013ce
commit
a361918374
@ -3276,8 +3276,11 @@ namespace bgfx { namespace gl
|
||||
*array = '\0';
|
||||
array++;
|
||||
char* end = strchr(array, ']');
|
||||
*end = '\0';
|
||||
offset = atoi(array);
|
||||
if (NULL != end)
|
||||
{ // Some devices (Amazon Fire) might not return terminating brace.
|
||||
*end = '\0';
|
||||
offset = atoi(array);
|
||||
}
|
||||
}
|
||||
|
||||
switch (gltype)
|
||||
|
Loading…
Reference in New Issue
Block a user