diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index d917e15..0bf60f3 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1951,7 +1951,6 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions, GLint expectedSize; GLenum choose_format; GLenum choose_type; - GLenum proxy_format; GLenum error = GL_NO_ERROR; char *reason = ""; /* no error */ @@ -1982,7 +1981,6 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions, case GL_PALETTE8_RGB5_A1_OES: _mesa_cpal_compressed_format_type(internalFormat, &choose_format, &choose_type); - proxy_format = choose_format; /* check level (note that level should be zero or less!) */ if (level > 0 || level < -maxLevels) { @@ -2017,7 +2015,6 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions, default: choose_format = GL_NONE; choose_type = GL_NONE; - proxy_format = internalFormat; /* check level */ if (level < 0 || level >= maxLevels) {