1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00
This commit is contained in:
Camilla Berglund 2015-06-16 22:16:36 +02:00
parent 3365139a6c
commit 2aa8e17c88

View File

@ -492,16 +492,13 @@ GLboolean _glfwIsValidContext(const _GLFWctxconfig* ctxconfig)
int _glfwStringInExtensionString(const char* string, const GLubyte* extensions)
{
const GLubyte* start;
const GLubyte* start = extensions;
for (;;)
{
GLubyte* where;
GLubyte* terminator;
// It takes a bit of care to be fool-proof about parsing the
// OpenGL extensions string. Don't be fooled by sub-strings,
// etc.
start = extensions;
for (;;)
{
where = (GLubyte*) strstr((const char*) start, string);
if (!where)
return GL_FALSE;