diff --git a/src/opengl.c b/src/opengl.c index 957e4d24..59097e1e 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -84,7 +84,7 @@ static void parseGLVersion(int* major, int* minor, int* rev) // Find version from OpenGL string for (; version && - !sscanf(version, "%d.%d.%d", &_major, &_minor, &_rev); + !sscanf((char*)version, "%d.%d.%d", &_major, &_minor, &_rev); ++version); // Store result