aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2006-06-19 09:27:04 +0000
committerAlan Hourihane <[email protected]>2006-06-19 09:27:04 +0000
commit161de10ce885e73ca07a0c851d63bf1a732c1ea8 (patch)
tree35a856212cc75a972bc676e79ca9c9948045acf4
parent11fceb19d3aa6adf9fe103ad733b37a69229caec (diff)
If DrawBuffer isn't set, return immediately
-rw-r--r--src/mesa/main/framebuffer.c3
1 files changed, 3 insertions, 0 deletions
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);