mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
i915: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.
The _Enabled field isn't updated at the point that DrawBuffers is called, and the Driver.Enable() function does the testing for stencil buffer presence anyway. bug #21608 for Radeon
This commit is contained in:
parent
5c5a468848
commit
4c6f829899
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
|
|||
ctx->Driver.Enable(ctx, GL_DEPTH_TEST,
|
||||
(ctx->Depth.Test && fb->Visual.depthBits > 0));
|
||||
ctx->Driver.Enable(ctx, GL_STENCIL_TEST,
|
||||
(ctx->Stencil._Enabled && fb->Visual.stencilBits > 0));
|
||||
(ctx->Stencil.Enabled && fb->Visual.stencilBits > 0));
|
||||
}
|
||||
else {
|
||||
/* Mesa's Stencil._Enabled field is updated when
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue