mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Fixed issue #392.
This commit is contained in:
parent
cd234013ce
commit
a361918374
1 changed files with 5 additions and 2 deletions
|
@ -3276,8 +3276,11 @@ namespace bgfx { namespace gl
|
||||||
*array = '\0';
|
*array = '\0';
|
||||||
array++;
|
array++;
|
||||||
char* end = strchr(array, ']');
|
char* end = strchr(array, ']');
|
||||||
*end = '\0';
|
if (NULL != end)
|
||||||
offset = atoi(array);
|
{ // Some devices (Amazon Fire) might not return terminating brace.
|
||||||
|
*end = '\0';
|
||||||
|
offset = atoi(array);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (gltype)
|
switch (gltype)
|
||||||
|
|
Loading…
Reference in a new issue