OSDN Git Service

swrast: remove an unused-but-set variable
authorMarek Olšák <maraeo@gmail.com>
Fri, 15 Jul 2011 18:06:01 +0000 (20:06 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 15 Jul 2011 19:48:28 +0000 (21:48 +0200)
src/mesa/swrast/s_span.c

index f81de3c..db102ac 100644 (file)
@@ -961,17 +961,6 @@ convert_color_type(SWspan *span, GLenum newType, GLuint output)
 static INLINE void
 shade_texture_span(struct gl_context *ctx, SWspan *span)
 {
-   GLbitfield inputsRead;
-
-   /* Determine which fragment attributes are actually needed */
-   if (ctx->FragmentProgram._Current) {
-      inputsRead = ctx->FragmentProgram._Current->Base.InputsRead;
-   }
-   else {
-      /* XXX we could be a bit smarter about this */
-      inputsRead = ~0;
-   }
-
    if (ctx->FragmentProgram._Current ||
        ctx->ATIFragmentShader._Enabled) {
       /* programmable shading */