mesa: use Stencil._Enabled field instead of Stencil.Enabled
This commit is contained in:
@@ -263,7 +263,7 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* XXX FBO: instead of FALSE, pass ctx->Stencil.Enabled ??? */
|
||||
/* XXX FBO: instead of FALSE, pass ctx->Stencil._Enabled ??? */
|
||||
FALLBACK(intel, INTEL_FALLBACK_STENCIL_BUFFER, GL_FALSE);
|
||||
}
|
||||
|
||||
@@ -274,7 +274,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 {
|
||||
ctx->NewState |= (_NEW_DEPTH | _NEW_STENCIL);
|
||||
|
Reference in New Issue
Block a user