projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f085147
)
i965: Add a note about why the _NEW_STENCIL is required in draw_buffers.
author
Eric Anholt
<eric@anholt.net>
Thu, 5 Mar 2009 18:57:43 +0000
(10:57 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 6 Mar 2009 03:42:17 +0000
(19:42 -0800)
src/mesa/drivers/dri/intel/intel_buffers.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_buffers.c
b/src/mesa/drivers/dri/intel/intel_buffers.c
index 732bae5b5aede341b89308f7b2985c5fa00a1da8..0929a2c223cc49bbb0f49619a010739b5117772c 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/
src/mesa/drivers/dri/intel/intel_buffers.c
@@
-277,6
+277,11
@@
intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
(ctx->Stencil._Enabled && fb->Visual.stencilBits > 0));
}
else {
+ /* Mesa's Stencil._Enabled field is updated when
+ * _NEW_BUFFERS | _NEW_STENCIL, but i965 code assumes that the value
+ * only changes with _NEW_STENCIL (which seems sensible). So flag it
+ * here since this is the _NEW_BUFFERS path.
+ */
ctx->NewState |= (_NEW_DEPTH | _NEW_STENCIL);
}