From: Eric Anholt Date: Mon, 3 Aug 2009 19:36:52 +0000 (-0700) Subject: texenv: Match state.c in deciding whether we'll be using a vertex shader. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40990d9dfb20b69585859b2a45596aa46c20140a;p=mesa.git texenv: Match state.c in deciding whether we'll be using a vertex shader. --- diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index 6b090ff399b..2eefae82558 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -275,6 +275,7 @@ static GLbitfield get_fp_input_mask( GLcontext *ctx ) { /* _NEW_PROGRAM */ const GLboolean vertexShader = (ctx->Shader.CurrentProgram && + ctx->Shader.CurrentProgram->LinkStatus && ctx->Shader.CurrentProgram->VertexProgram); const GLboolean vertexProgram = ctx->VertexProgram._Enabled; GLbitfield fp_inputs = 0x0;