projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e61f4
)
mesa: remove warning/short-circuit of stencil enable w/ no stencil buffer
author
Brian Paul
<brianp@vmware.com>
Mon, 2 Mar 2009 18:49:19 +0000
(11:49 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 2 Mar 2009 18:49:37 +0000
(11:49 -0700)
With FBOs one could enable stencil before a stencil buffer is later bound.
src/mesa/main/enable.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/enable.c
b/src/mesa/main/enable.c
index 7ff3b15c8465368d021329e65c97494ce028c302..a824705bdcc0da2a46a65bdc0bd7b89f688906ff 100644
(file)
--- a/
src/mesa/main/enable.c
+++ b/
src/mesa/main/enable.c
@@
-602,11
+602,6
@@
_mesa_set_enable(GLcontext *ctx, GLenum cap, GLboolean state)
ctx->Texture.SharedPalette = state;
break;
case GL_STENCIL_TEST:
- if (state && ctx->DrawBuffer->Visual.stencilBits == 0) {
- _mesa_warning(ctx,
- "glEnable(GL_STENCIL_TEST) but no stencil buffer");
- return;
- }
if (ctx->Stencil.Enabled == state)
return;
FLUSH_VERTICES(ctx, _NEW_STENCIL);