Check for a valid context
authorAlan Hourihane <alanh@tungstengraphics.com>
Wed, 21 Jun 2006 10:58:04 +0000 (10:58 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Wed, 21 Jun 2006 10:58:04 +0000 (10:58 +0000)
src/mesa/main/framebuffer.c

index 4c64281a6250dc67b6695e8a0bd45f0ef9bd89c1..612746adefedc95d1a9aad503466e90f51cf9a32 100644 (file)
@@ -328,7 +328,8 @@ _mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
    fb->Height = height;
 
    /* to update scissor / window bounds */
-   _mesa_update_draw_buffer_bounds(ctx);
+   if (ctx)
+      _mesa_update_draw_buffer_bounds(ctx);
 }