mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-26 07:41:58 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@146 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
d6b4c953bc
commit
48708fe729
@ -15,8 +15,7 @@ const GLubyte* glewGetErrorString (GLenum error)
|
|||||||
"GLX 1.2 and up are not supported",
|
"GLX 1.2 and up are not supported",
|
||||||
"unknown error"
|
"unknown error"
|
||||||
};
|
};
|
||||||
if (error > 4) error = 4;
|
return _glewErrorString[error > 4 ? 4 : error];
|
||||||
return _glewErrorString[error];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const GLubyte* glewGetString (GLenum name)
|
const GLubyte* glewGetString (GLenum name)
|
||||||
@ -26,8 +25,7 @@ const GLubyte* glewGetString (GLenum name)
|
|||||||
NULL,
|
NULL,
|
||||||
"GLEW_VERSION_STRING"
|
"GLEW_VERSION_STRING"
|
||||||
};
|
};
|
||||||
if (name > 1) name = 0;
|
return _glewString[name > 1 ? 0 : name];
|
||||||
return _glewString[name];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
Loading…
Reference in New Issue
Block a user