mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -3205,6 +3205,10 @@ compressed_texture_error_check(GLcontext *ctx, GLint dimensions,
|
|||
/* 3D compressed textures not allowed */
|
||||
return GL_INVALID_ENUM;
|
||||
}
|
||||
else {
|
||||
assert(0);
|
||||
return GL_INVALID_ENUM;
|
||||
}
|
||||
|
||||
maxTextureSize = 1 << (maxLevels - 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue