summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/framebuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index a5460795b88..de79ae0d85a 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -447,6 +447,8 @@ _mesa_update_framebuffer_visual(struct gl_context *ctx,
fb->Visual.floatMode = GL_FALSE;
for (unsigned i = 0; i < BUFFER_COUNT; i++) {
+ if (i == BUFFER_DEPTH)
+ continue;
if (fb->Attachment[i].Renderbuffer) {
const struct gl_renderbuffer *rb = fb->Attachment[i].Renderbuffer;
const mesa_format fmt = rb->Format;