Check for a valid context

This commit is contained in:
Alan Hourihane 2006-06-21 10:58:04 +00:00
parent 4cd9e5c3c9
commit feb0ff11e5
1 changed files with 2 additions and 1 deletions

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