src/video/x11/SDL_x11gl.c
branchSDL-1.2
changeset 4312 f2f8525e60c2
parent 4290 485868a1c283
child 4343 d380e7a6265b
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);