mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
always load frag prog state params for now (see comments)
This commit is contained in:
parent
51b115d5ae
commit
6f676f4871
1 changed files with 5 additions and 0 deletions
|
|
@ -227,7 +227,12 @@ _swrast_update_fragment_program(GLcontext *ctx, GLbitfield newState)
|
|||
{
|
||||
if (ctx->FragmentProgram._Enabled) {
|
||||
const struct gl_fragment_program *fp = ctx->FragmentProgram._Current;
|
||||
#if 0
|
||||
/* XXX Need a way to trigger the initial loading of parameters
|
||||
* even when there's no recent state changes.
|
||||
*/
|
||||
if (fp->Base.Parameters->StateFlags & newState)
|
||||
#endif
|
||||
_mesa_load_state_parameters(ctx, fp->Base.Parameters);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue