mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 01:30:31 +01:00
mesa: Handle astc 3d formats in _mesa_base_tex_format()
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
cf85ef1618
commit
dcfea1d7eb
1 changed files with 4 additions and 2 deletions
|
|
@ -2388,8 +2388,10 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat)
|
|||
return base_compressed;
|
||||
}
|
||||
|
||||
if (ctx->Extensions.KHR_texture_compression_astc_ldr &&
|
||||
_mesa_is_astc_format(internalFormat))
|
||||
if ((ctx->Extensions.KHR_texture_compression_astc_ldr &&
|
||||
is_astc_2d_format(internalFormat)) ||
|
||||
(ctx->Extensions.OES_texture_compression_astc &&
|
||||
is_astc_3d_format(internalFormat)))
|
||||
return GL_RGBA;
|
||||
|
||||
if (ctx->Extensions.MESA_ycbcr_texture) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue