diff src/video/directfb/SDL_DirectFB_opengl.c @ 2998:d364ee9b9c15

Date: Sun, 04 Jan 2009 20:53:30 +0100 From: Couriersud Subject: SDL1.3 DirectFB patches The attached contains the following directfb changes: - Dynamic loading of libdirectfb.so. This may to turned off as well in configure - Use linux-input by default. May be switched off by environment variable. - Added some code which will use directfb's x11 backend when DISPLAY is set.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2009 23:43:33 +0000
parents 99210400e8b9
children 8f4ed5ec2b06
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_opengl.c	Sun Jan 04 23:41:09 2009 +0000
+++ b/src/video/directfb/SDL_DirectFB_opengl.c	Sun Jan 04 23:43:33 2009 +0000
@@ -175,6 +175,10 @@
 
     SDL_DFB_CHECKERR(windata->surface->
                      GetGL(windata->surface, &context->context));
+
+    if (!context->context)
+        return NULL;
+
     SDL_DFB_CHECKERR(context->context->Unlock(context->context));
 
     context->next = _this->gl_data->firstgl;