comparison src/video/x11/SDL_x11gl.c @ 4312:f2f8525e60c2 SDL-1.2

Debian patch: 310_segfault_noGLX.diff
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 10:10:36 +0000
parents 485868a1c283
children d380e7a6265b
comparison
equal deleted inserted replaced
4311:1238da4a7112 4312:f2f8525e60c2
75 75
76 extensions = this->gl_data->glXQueryExtensionsString(GFX_Display,SDL_Screen); 76 extensions = this->gl_data->glXQueryExtensionsString(GFX_Display,SDL_Screen);
77 /* It takes a bit of care to be fool-proof about parsing the 77 /* It takes a bit of care to be fool-proof about parsing the
78 * OpenGL extensions string. Don't be fooled by sub-strings, etc. 78 * OpenGL extensions string. Don't be fooled by sub-strings, etc.
79 */ 79 */
80
81 /* http://bugs.debian.org/537487 */
82 if (extensions == NULL) {
83 return 0;
84 }
80 85
81 start = extensions; 86 start = extensions;
82 87
83 for (;;) { 88 for (;;) {
84 where = SDL_strstr(start, extension); 89 where = SDL_strstr(start, extension);