mesa: Add error path in compressed_texture_error_check.
Add error path for unhandled dimensions in compressed_texture_error_check.
This commit is contained in:
parent
643f5ea1e0
commit
5f9d7bb242
|
@ -3205,6 +3205,10 @@ compressed_texture_error_check(GLcontext *ctx, GLint dimensions,
|
||||||
/* 3D compressed textures not allowed */
|
/* 3D compressed textures not allowed */
|
||||||
return GL_INVALID_ENUM;
|
return GL_INVALID_ENUM;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
assert(0);
|
||||||
|
return GL_INVALID_ENUM;
|
||||||
|
}
|
||||||
|
|
||||||
maxTextureSize = 1 << (maxLevels - 1);
|
maxTextureSize = 1 << (maxLevels - 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue