st/mesa: restore original last_layer comparison
[mesa.git] / src / mesa / state_tracker / st_atom_texture.c
index f4294ac1e6f0d40705d9a636b62dbf3e71d801e5..2575adda8fc631162b38e368df967d5a409b056e 100644 (file)
@@ -138,7 +138,6 @@ finalize_textures(struct st_context *st)
          const GLuint texUnit = fprog->Base.SamplerUnits[su];
          struct gl_texture_object *texObj
             = st->ctx->Texture.Unit[texUnit]._Current;
-         struct st_texture_object *stObj = st_texture_object(texObj);
 
          if (texObj) {
             GLboolean flush, retval;
@@ -149,8 +148,6 @@ finalize_textures(struct st_context *st)
                st->missing_textures = GL_TRUE;
                continue;
             }
-
-            stObj->teximage_realloc = TRUE;
          }
       }
    }