diff options
author | Alan Hourihane <[email protected]> | 2006-06-19 09:27:04 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2006-06-19 09:27:04 +0000 |
commit | 161de10ce885e73ca07a0c851d63bf1a732c1ea8 (patch) | |
tree | 35a856212cc75a972bc676e79ca9c9948045acf4 | |
parent | 11fceb19d3aa6adf9fe103ad733b37a69229caec (diff) |
If DrawBuffer isn't set, return immediately
-rw-r--r-- | src/mesa/main/framebuffer.c | 3 |
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); |