summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-11-15 14:50:55 +0000
committerBrian Paul <[email protected]>2005-11-15 14:50:55 +0000
commit7edf68e08178106a37094e1aed2df1898f3027cd (patch)
tree0b61fd41054b0e4686c62f0cd1e34689110e394e
parent1e134cf7e402a9c16064b19a0c72ed17cb2fc189 (diff)
check for ctx==NULL, bug 4087
-rw-r--r--src/mesa/main/framebuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index f2993b112bf..956527efbc1 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -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;
}