check for ctx==NULL, bug 4087
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 15 Nov 2005 14:50:55 +0000 (14:50 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 15 Nov 2005 14:50:55 +0000 (14:50 +0000)
src/mesa/main/framebuffer.c

index f2993b1..956527e 100644 (file)
@@ -226,7 +226,8 @@ _mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
    fb->Height = height;
 
    /* to update scissor / window bounds */
-   ctx->NewState |= _NEW_BUFFERS;
+   if (ctx)
+      ctx->NewState |= _NEW_BUFFERS;
 }