don't be fooled into emitting padding for wpos when not used

This commit is contained in:
Keith Whitwell
2005-05-10 13:54:52 +00:00
parent d9fdb6c2bb
commit ab81d1fd99
2 changed files with 2 additions and 2 deletions

View File

@@ -788,7 +788,7 @@ static void check_wpos( struct i915_fragment_program *p )
GLuint inputs = p->FragProg.InputsRead;
GLint i;
p->wpos_tex = 0;
p->wpos_tex = -1;
for (i = 0; i < p->ctx->Const.MaxTextureCoordUnits; i++) {
if (inputs & FRAG_BIT_TEX(i))