mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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.
This commit is contained in:
parent
91e61f435a
commit
8fec37c0f1
1 changed files with 0 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue