Mesa (master): mesa: remove warning/short-circuit of stencil enable w/ no stencil buffer
Brian Paul
brianp at kemper.freedesktop.org
Mon Mar 2 18:51:15 UTC 2009
Module: Mesa
Branch: master
Commit: 8fec37c0f11e624644da48d612c60e736861a212
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fec37c0f11e624644da48d612c60e736861a212
Author: Brian Paul <brianp at vmware.com>
Date: Mon Mar 2 11:49:19 2009 -0700
mesa: remove warning/short-circuit of stencil enable w/ no stencil buffer
With FBOs one could enable stencil before a stencil buffer is later bound.
---
src/mesa/main/enable.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 7ff3b15..a824705 100644
--- 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);
More information about the mesa-commit
mailing list