From: Alan Hourihane Date: Wed, 21 Jun 2006 10:58:04 +0000 (+0000) Subject: Check for a valid context X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=feb0ff11e5d429e1444f9987137c929adfb09bc8;p=mesa.git Check for a valid context --- diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 4c64281a625..612746adefe 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -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); }