mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 01:10:39 +01:00
Update depth test state when binding new framebuffer object
This commit is contained in:
parent
0c43ab6fbc
commit
995e01a6bc
1 changed files with 9 additions and 0 deletions
|
|
@ -1124,6 +1124,15 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
|
|||
ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil.Enabled);
|
||||
}
|
||||
|
||||
/*
|
||||
* Update depth test state
|
||||
*/
|
||||
if (ctx->Depth.Test && fb->Visual.depthBits > 0) {
|
||||
ctx->Driver.Enable(ctx, GL_DEPTH_TEST, GL_TRUE);
|
||||
}
|
||||
else {
|
||||
ctx->Driver.Enable(ctx, GL_DEPTH_TEST, GL_FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
** Release old regions, reference new regions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue