mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
Previously, if a fragment program referenced fragment.fogcoord but the
program didn't use the ARB_fog_linear option, the fragment program's fragment.fogcoord register wasn't loaded properly.
This commit is contained in:
parent
e9b923182e
commit
fe457474d4
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.5
|
||||
* Version: 6.5.2
|
||||
*
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
*
|
||||
|
|
@ -184,7 +184,8 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
|
|||
|
||||
if (ctx->Fog.Enabled ||
|
||||
(ctx->FragmentProgram._Active &&
|
||||
ctx->FragmentProgram._Current->FogOption != GL_NONE))
|
||||
(ctx->FragmentProgram._Current->FogOption != GL_NONE ||
|
||||
ctx->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_FOGC)))
|
||||
RENDERINPUTS_SET( tnl->render_inputs_bitset, _TNL_ATTRIB_FOG );
|
||||
|
||||
if (ctx->Polygon.FrontMode != GL_FILL ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue