mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
swrast: fix state validation bug for changing program constants
Add _NEW_PROGRAM_CONSTANTS to _SWRAST_NEW_DERIVED. This makes sure that we update the fragment shader's constants when state vars (such as point size) changes. Fixes the progs/glsl/points.c demo.
This commit is contained in:
parent
506989b20e
commit
88527220e4
1 changed files with 1 additions and 0 deletions
|
|
@ -289,6 +289,7 @@ _swrast_update_specular_vertex_add(GLcontext *ctx)
|
|||
|
||||
|
||||
#define _SWRAST_NEW_DERIVED (_SWRAST_NEW_RASTERMASK | \
|
||||
_NEW_PROGRAM_CONSTANTS | \
|
||||
_NEW_TEXTURE | \
|
||||
_NEW_HINT | \
|
||||
_NEW_POLYGON )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue