Removed direct dependency on OpenGL (call current_video->glGetString() instead
authorRyan C. Gordon <icculus@icculus.org>
Tue, 01 Jul 2003 16:35:54 +0000
changeset 643564716cfb502
parent 642 de622b7108bf
child 644 594422ab8f9f
Removed direct dependency on OpenGL (call current_video->glGetString() instead
of glGetString() directly)...otherwise we'd have to explicitly link to a
libGL. --ryan.
src/video/x11/SDL_x11gl.c
     1.1 --- a/src/video/x11/SDL_x11gl.c	Tue Jul 01 01:18:27 2003 +0000
     1.2 +++ b/src/video/x11/SDL_x11gl.c	Tue Jul 01 16:35:54 2003 +0000
     1.3 @@ -240,7 +240,7 @@
     1.4  	if (where || *extension == '\0')
     1.5  	      return 0;
     1.6  	
     1.7 -	extensions = glGetString(GL_EXTENSIONS);
     1.8 +	extensions = current_video->glGetString(GL_EXTENSIONS);
     1.9  	/* It takes a bit of care to be fool-proof about parsing the
    1.10  	 *      OpenGL extensions string. Don't be fooled by sub-strings,
    1.11  	 *           etc. */