From: Alan Hourihane Date: Mon, 19 Jun 2006 09:27:04 +0000 (+0000) Subject: If DrawBuffer isn't set, return immediately X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=161de10ce885e73ca07a0c851d63bf1a732c1ea8;p=mesa.git If DrawBuffer isn't set, return immediately --- diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 4d6871bb7d0..4c64281a625 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -381,6 +381,9 @@ _mesa_update_draw_buffer_bounds(GLcontext *ctx) { struct gl_framebuffer *buffer = ctx->DrawBuffer; + if (!buffer) + return; + if (buffer->Name) { /* user-created framebuffer size depends on the renderbuffers */ update_framebuffer_size(buffer);