mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
mesa: allow generating mipmaps for cube arrays
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 185ad78ffd)
This commit is contained in:
parent
3a4a0882cb
commit
1dba985788
1 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,10 @@ _mesa_GenerateMipmap(GLenum target)
|
|||
error = (_mesa_is_gles(ctx) && ctx->Version < 30)
|
||||
|| !ctx->Extensions.EXT_texture_array;
|
||||
break;
|
||||
case GL_TEXTURE_CUBE_MAP_ARRAY:
|
||||
error = _mesa_is_gles(ctx) ||
|
||||
!ctx->Extensions.ARB_texture_cube_map_array;
|
||||
break;
|
||||
default:
|
||||
error = GL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue