mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 06:40:27 +01:00
Move call to _swrast_update_rasterflags() since it depends on the
results of _swrast_update_fog_state(). Fixes bug where first frame of progs/samples/fog.c does not show fog.
This commit is contained in:
parent
f7c4dc007f
commit
8334c8a216
1 changed files with 3 additions and 3 deletions
|
|
@ -513,9 +513,6 @@ _swrast_validate_derived( GLcontext *ctx )
|
|||
SWcontext *swrast = SWRAST_CONTEXT(ctx);
|
||||
|
||||
if (swrast->NewState) {
|
||||
if (swrast->NewState & _SWRAST_NEW_RASTERMASK)
|
||||
_swrast_update_rasterflags( ctx );
|
||||
|
||||
if (swrast->NewState & _NEW_POLYGON)
|
||||
_swrast_update_polygon( ctx );
|
||||
|
||||
|
|
@ -537,6 +534,9 @@ _swrast_validate_derived( GLcontext *ctx )
|
|||
if (swrast->NewState & (_NEW_TEXTURE | _NEW_PROGRAM))
|
||||
_swrast_validate_texture_images( ctx );
|
||||
|
||||
if (swrast->NewState & _SWRAST_NEW_RASTERMASK)
|
||||
_swrast_update_rasterflags( ctx );
|
||||
|
||||
swrast->NewState = 0;
|
||||
swrast->StateChanges = 0;
|
||||
swrast->InvalidateState = _swrast_invalidate_state;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue