mesa: remove unused variables to fix compile warnings
This commit is contained in:
@@ -1949,9 +1949,6 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions,
|
|||||||
{
|
{
|
||||||
const GLint maxLevels = _mesa_max_texture_levels(ctx, target);
|
const GLint maxLevels = _mesa_max_texture_levels(ctx, target);
|
||||||
GLint expectedSize;
|
GLint expectedSize;
|
||||||
GLenum choose_format;
|
|
||||||
GLenum choose_type;
|
|
||||||
GLenum proxy_format;
|
|
||||||
GLenum error = GL_NO_ERROR;
|
GLenum error = GL_NO_ERROR;
|
||||||
char *reason = ""; /* no error */
|
char *reason = ""; /* no error */
|
||||||
|
|
||||||
@@ -2015,10 +2012,6 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
choose_format = GL_NONE;
|
|
||||||
choose_type = GL_NONE;
|
|
||||||
proxy_format = internalFormat;
|
|
||||||
|
|
||||||
/* check level */
|
/* check level */
|
||||||
if (level < 0 || level >= maxLevels) {
|
if (level < 0 || level >= maxLevels) {
|
||||||
reason = "level";
|
reason = "level";
|
||||||
|
|||||||
Reference in New Issue
Block a user