*** 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:
ikits 2003-10-01 03:41:11 +00:00
parent d6b4c953bc
commit 48708fe729

View File

@ -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];
} }
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */