mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
intel: check if stencil test is enabled in intel_stencil_drawpixels()
(cherry picked from master/commit 72ee0e247d)
This commit is contained in:
parent
2fd9c2ebd6
commit
999fe905c9
1 changed files with 5 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ intel_texture_drawpixels(GLcontext * ctx,
|
|||
return GL_FALSE;
|
||||
}
|
||||
|
||||
/* We don't have a way to generate fragments with stencil values which *
|
||||
/* We don't have a way to generate fragments with stencil values which
|
||||
* will set the resulting stencil value.
|
||||
*/
|
||||
if (format == GL_STENCIL_INDEX)
|
||||
|
|
@ -225,6 +225,10 @@ intel_stencil_drawpixels(GLcontext * ctx,
|
|||
return GL_FALSE;
|
||||
}
|
||||
|
||||
/* We don't support stencil testing/ops here */
|
||||
if (ctx->Stencil.Enabled)
|
||||
return GL_FALSE;
|
||||
|
||||
/* We use FBOs for our wrapping of the depthbuffer into a color
|
||||
* destination.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue