mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02: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);
|
struct state_key *key = CALLOC_STRUCT(state_key);
|
||||||
GLuint i;
|
GLuint i;
|
||||||
|
|
||||||
if (ctx->Shader.CurrentProgram &&
|
fp = ctx->FragmentProgram._Current;
|
||||||
ctx->Shader.CurrentProgram->LinkStatus &&
|
|
||||||
ctx->Shader.CurrentProgram->FragmentProgram)
|
|
||||||
fp = ctx->Shader.CurrentProgram->FragmentProgram;
|
|
||||||
else
|
|
||||||
fp = ctx->FragmentProgram._Current;
|
|
||||||
|
|
||||||
/* This now relies on texenvprogram.c being active:
|
/* This now relies on texenvprogram.c being active:
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue