From 6913984f0e9f56c3b592d872bc61a47955d7be47 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 10 Oct 2009 10:10:36 +0000 Subject: [PATCH] Debian patch: 310_segfault_noGLX.diff --- src/video/x11/SDL_x11gl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/x11/SDL_x11gl.c b/src/video/x11/SDL_x11gl.c index a2aa54dfb..a3190ddd8 100644 --- a/src/video/x11/SDL_x11gl.c +++ b/src/video/x11/SDL_x11gl.c @@ -77,6 +77,11 @@ static int glXExtensionSupported(_THIS, const char *extension) /* It takes a bit of care to be fool-proof about parsing the * OpenGL extensions string. Don't be fooled by sub-strings, etc. */ + + /* http://bugs.debian.org/537487 */ + if (extensions == NULL) { + return 0; + } start = extensions;