summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-07 01:43:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-07 01:43:52 +0000
commit2e01918b553ad50f6df788bb762f487d618ad37e (patch)
treed3d9175de437793c67c567a818a549a26fe77ddc /src/mesa
parent168a7516b1aee46a142f0b250ee27ef6c6e96fbc (diff)
call _mesa_update_framebuffer_visual() in _mesa_FramebufferRenderbufferEXT() to fix some minor glitches
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/fbobject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 6aeca7b721..749115a799 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -2,7 +2,7 @@
* Mesa 3-D graphics library
* Version: 6.5
*
- * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -1373,6 +1373,11 @@ _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment,
assert(ctx->Driver.FramebufferRenderbuffer);
ctx->Driver.FramebufferRenderbuffer(ctx, fb, attachment, rb);
+
+ /* Some subsequent GL commands may depend on the framebuffer's visual
+ * after the binding is updated. Update visual info now.
+ */
+ _mesa_update_framebuffer_visual(fb);
}