src/video/directfb/SDL_DirectFB_opengl.c
changeset 2998 d364ee9b9c15
parent 2859 99210400e8b9
child 3011 8f4ed5ec2b06
     1.1 --- a/src/video/directfb/SDL_DirectFB_opengl.c	Sun Jan 04 23:41:09 2009 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_opengl.c	Sun Jan 04 23:43:33 2009 +0000
     1.3 @@ -175,6 +175,10 @@
     1.4  
     1.5      SDL_DFB_CHECKERR(windata->surface->
     1.6                       GetGL(windata->surface, &context->context));
     1.7 +
     1.8 +    if (!context->context)
     1.9 +        return NULL;
    1.10 +
    1.11      SDL_DFB_CHECKERR(context->context->Unlock(context->context));
    1.12  
    1.13      context->next = _this->gl_data->firstgl;