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 f2993b112bfd3333b616f5b6113ad222572e6300..956527efbc170eb8132cb54f63c4610d2efad395 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;
 }