diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2006-06-21 10:58:04 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2006-06-21 10:58:04 +0000 |
commit | feb0ff11e5d429e1444f9987137c929adfb09bc8 (patch) | |
tree | 6edcc085362f7548740a24890abae788f78e5596 /src | |
parent | 4cd9e5c3c9dd80a8f2f0bc10b63ae504ca0660fb (diff) | |
download | external_mesa3d-feb0ff11e5d429e1444f9987137c929adfb09bc8.zip external_mesa3d-feb0ff11e5d429e1444f9987137c929adfb09bc8.tar.gz external_mesa3d-feb0ff11e5d429e1444f9987137c929adfb09bc8.tar.bz2 |
Check for a valid context
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/framebuffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 4c64281..612746a 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); } |