From b7b9daef8954fdc52e7066fc2f4ce42c8c335f87 Mon Sep 17 00:00:00 2001 From: ikits Date: Fri, 2 May 2003 07:53:22 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@58 783a27ee-832a-0410-bc00-9f386506c6dd --- src/glew.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/glew.c b/src/glew.c index efed0dc..d35e687 100644 --- a/src/glew.c +++ b/src/glew.c @@ -3412,18 +3412,17 @@ static GLint _glxewInit () /* ------------------------------------------------------------------------ */ -static char _glewErrorString[6][40] = -{ - "no error", - "missing GL version", - "missing {ARB,EXT}_extensions_string", - "GL 1.1 and up are not supported", - "GLX 1.2 and up are not supported", - "unknown error" -}; - const char* glewGetErrorString (GLint error) { + static const char* _glewErrorString[] = + { + "no error", + "missing GL version", + "missing {ARB,EXT}_extensions_string", + "GL 1.1 and up are not supported", + "GLX 1.2 and up are not supported", + "unknown error" + }; if (error > 5) error = 5; return _glewErrorString[error]; }