mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 15:44:35 +00:00
Cleanup.
This commit is contained in:
parent
3365139a6c
commit
2aa8e17c88
@ -492,16 +492,13 @@ GLboolean _glfwIsValidContext(const _GLFWctxconfig* ctxconfig)
|
|||||||
|
|
||||||
int _glfwStringInExtensionString(const char* string, const GLubyte* extensions)
|
int _glfwStringInExtensionString(const char* string, const GLubyte* extensions)
|
||||||
{
|
{
|
||||||
const GLubyte* start;
|
const GLubyte* start = extensions;
|
||||||
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 (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
GLubyte* where;
|
||||||
|
GLubyte* terminator;
|
||||||
|
|
||||||
where = (GLubyte*) strstr((const char*) start, string);
|
where = (GLubyte*) strstr((const char*) start, string);
|
||||||
if (!where)
|
if (!where)
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user