comparison src/video/x11/SDL_x11gl.c @ 643:564716cfb502

Removed direct dependency on OpenGL (call current_video->glGetString() instead of glGetString() directly)...otherwise we'd have to explicitly link to a libGL. --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 01 Jul 2003 16:35:54 +0000
parents b0108e9dea53
children 0f2029a70548
comparison
equal deleted inserted replaced
642:de622b7108bf 643:564716cfb502
238 /* Extension names should not have spaces. */ 238 /* Extension names should not have spaces. */
239 where = (GLubyte *) strchr(extension, ' '); 239 where = (GLubyte *) strchr(extension, ' ');
240 if (where || *extension == '\0') 240 if (where || *extension == '\0')
241 return 0; 241 return 0;
242 242
243 extensions = glGetString(GL_EXTENSIONS); 243 extensions = current_video->glGetString(GL_EXTENSIONS);
244 /* It takes a bit of care to be fool-proof about parsing the 244 /* It takes a bit of care to be fool-proof about parsing the
245 * OpenGL extensions string. Don't be fooled by sub-strings, 245 * OpenGL extensions string. Don't be fooled by sub-strings,
246 * etc. */ 246 * etc. */
247 247
248 start = extensions; 248 start = extensions;