mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 19:00:13 +01:00
gles: Fix glGet(GL_{NUM_,}COMPRESSED_TEXTURE_FORMATS_ARB)
We'd still accept the GL_PALETTE[48]_* formats in glCompressedTexImage2D, but they wouldn't be listed if you queried whether they were supported. Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
b453ba2c9f
commit
faf5d6584b
1 changed files with 2 additions and 1 deletions
|
|
@ -259,7 +259,6 @@ _mesa_get_compressed_formats(struct gl_context *ctx, GLint *formats)
|
||||||
n += 4;
|
n += 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return n;
|
|
||||||
|
|
||||||
#if FEATURE_ES1 || FEATURE_ES2
|
#if FEATURE_ES1 || FEATURE_ES2
|
||||||
if (formats) {
|
if (formats) {
|
||||||
|
|
@ -278,6 +277,8 @@ _mesa_get_compressed_formats(struct gl_context *ctx, GLint *formats)
|
||||||
n += 10;
|
n += 10;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue