summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-04-20 00:45:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-04-20 00:45:08 +0000
commit34b3b40af97d2db6d46dcce46c4c49c198621fce (patch)
tree82bceae0efe95f5b2825af0ea4c6c9c4eb110424
parentb5d76b68588c3be2a6b73f80e41a169716463644 (diff)
some tentative code for _mesa_update_framebuffer_visual()
-rw-r--r--src/mesa/main/framebuffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 93950d3cd1..8dd71ef299 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) {