From 7edf68e08178106a37094e1aed2df1898f3027cd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 15 Nov 2005 14:50:55 +0000 Subject: check for ctx==NULL, bug 4087 --- src/mesa/main/framebuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index f2993b112b..956527efbc 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; } -- cgit v1.2.3