check for ctx==NULL, bug 4087

This commit is contained in:
Brian Paul
2005-11-15 14:50:55 +00:00
parent 1e134cf7e4
commit 7edf68e081

View 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;
}