aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/framebuffer.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-10-04 14:48:24 +0000
committerBrian Paul <[email protected]>2005-10-04 14:48:24 +0000
commiteb063cfa386ccf64e01be2fc6e6a44f702d19da5 (patch)
treead5950efa70a1a8fdce0a4409666fb4ff7a94069 /src/mesa/main/framebuffer.c
parent199ef86b5e6354098bc800ffb56a6cab3e9a99a1 (diff)
change initialization of renderbuffer DepthBits
Diffstat (limited to 'src/mesa/main/framebuffer.c')
-rw-r--r--src/mesa/main/framebuffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index cdfd0f9c7c8..f6322bf4d1c 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -319,6 +319,11 @@ _mesa_update_draw_buffer_bounds(GLcontext *ctx)
* change depending on the renderbuffer bindings. This function updates
* the given framebuffer's Visual from the current renderbuffer bindings.
* This is only intended for user-created framebuffers.
+ *
+ * Also note: ctx->DrawBuffer->Visual.depthBits might not equal
+ * ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer.DepthBits.
+ * The former one is used to convert floating point depth values into
+ * integer Z values.
*/
void
_mesa_update_framebuffer_visual(struct gl_framebuffer *fb)