mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
mesa: allow GL_TEXTURE_CUBE_MAP_ARRAY case for glCompressedTexSubImage3D()
Since s3tc works for cube maps and 2D arrays, it should also work for cube arrays. NVIDIA's driver supports this too. Seems like the spec should say this. This is a minor follow-on fix for the commit "mesa: fix up some texture error checks". Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
4c7196b684
commit
98a6c5ea11
1 changed files with 1 additions and 1 deletions
|
|
@ -4588,7 +4588,7 @@ compressed_subtexture_target_check(struct gl_context *ctx, GLenum target,
|
|||
* are valid here, which they are not, but of course not mentioned by
|
||||
* core spec.
|
||||
*/
|
||||
if (target != GL_TEXTURE_2D_ARRAY) {
|
||||
if (target != GL_TEXTURE_2D_ARRAY && target != GL_TEXTURE_CUBE_MAP_ARRAY) {
|
||||
bool invalidformat;
|
||||
switch (format) {
|
||||
/* These came from _mesa_is_compressed_format in glformats.c. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue