Fixed issue #392.

This commit is contained in:
Branimir Karadžić 2015-05-21 17:49:02 -07:00
parent cd234013ce
commit a361918374

View file

@ -3276,9 +3276,12 @@ namespace bgfx { namespace gl
*array = '\0'; *array = '\0';
array++; array++;
char* end = strchr(array, ']'); char* end = strchr(array, ']');
if (NULL != end)
{ // Some devices (Amazon Fire) might not return terminating brace.
*end = '\0'; *end = '\0';
offset = atoi(array); offset = atoi(array);
} }
}
switch (gltype) switch (gltype)
{ {