mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-26 15:40:30 +01:00
simplify getting of current frag prog
This commit is contained in:
parent
27153bf02d
commit
783cedcdc1
1 changed files with 1 additions and 6 deletions
|
|
@ -122,12 +122,7 @@ static struct state_key *make_state_key( GLcontext *ctx )
|
|||
struct state_key *key = CALLOC_STRUCT(state_key);
|
||||
GLuint i;
|
||||
|
||||
if (ctx->Shader.CurrentProgram &&
|
||||
ctx->Shader.CurrentProgram->LinkStatus &&
|
||||
ctx->Shader.CurrentProgram->FragmentProgram)
|
||||
fp = ctx->Shader.CurrentProgram->FragmentProgram;
|
||||
else
|
||||
fp = ctx->FragmentProgram._Current;
|
||||
fp = ctx->FragmentProgram._Current;
|
||||
|
||||
/* This now relies on texenvprogram.c being active:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue