Branimir Karadžić %!s(int64=10) %!d(string=hai) anos
pai
achega
a361918374
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      src/renderer_gl.cpp

+ 5 - 2
src/renderer_gl.cpp

@@ -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)