From: Brian Paul Date: Thu, 20 Apr 2006 00:45:08 +0000 (+0000) Subject: some tentative code for _mesa_update_framebuffer_visual() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34b3b40af97d;p=mesa.git some tentative code for _mesa_update_framebuffer_visual() --- diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 93950d3cd1c..8dd71ef299d 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -419,6 +419,13 @@ _mesa_update_framebuffer_visual(struct gl_framebuffer *fb) _mesa_bzero(&fb->Visual, sizeof(fb->Visual)); fb->Visual.rgbMode = GL_TRUE; /* assume this */ +#if 0 /* this _might_ be needed */ + if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { + /* leave visual fields zero'd */ + return; + } +#endif + /* find first RGB or CI renderbuffer */ for (i = 0; i < BUFFER_COUNT; i++) { if (fb->Attachment[i].Renderbuffer) {