mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Make sure tnl->_DoVertexFog is kept uptodate. Fixes fog in i915
driver.
This commit is contained in:
parent
bf44f6cfac
commit
5a771857d9
1 changed files with 5 additions and 0 deletions
|
|
@ -273,6 +273,9 @@ _tnl_allow_vertex_fog( GLcontext *ctx, GLboolean value )
|
|||
{
|
||||
TNLcontext *tnl = TNL_CONTEXT(ctx);
|
||||
tnl->AllowVertexFog = value;
|
||||
tnl->_DoVertexFog = (tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
|
||||
|| !tnl->AllowPixelFog;
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -280,5 +283,7 @@ _tnl_allow_pixel_fog( GLcontext *ctx, GLboolean value )
|
|||
{
|
||||
TNLcontext *tnl = TNL_CONTEXT(ctx);
|
||||
tnl->AllowPixelFog = value;
|
||||
tnl->_DoVertexFog = (tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
|
||||
|| !tnl->AllowPixelFog;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue