Make astc pixel formats more likely to load (nvidia are the only ones that don't support ldr astc on new gpus, but their drivers can emulate it so things still work).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5522 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-08-20 10:46:02 +00:00
parent eeba6c912e
commit 267d9a1753
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ void GL_SetupFormats(void)
glfmtb(PTI_EAC_RG11_SNORM, GL_COMPRESSED_SIGNED_RG11_EAC);
}
if (GL_CheckExtension("GL_KHR_texture_compression_astc_ldr") || (gl_config_gles && gl_config.glversion >= 3.2))
if (GL_CheckExtension("GL_KHR_texture_compression_astc_ldr") || (gl_config_gles && gl_config.glversion >= 3.2) || GL_CheckExtension("GL_ARB_ES3_2_compatibility"))
{ //astc ldr profile is a core part of gles 3.2
glfmtb(PTI_ASTC_4X4, GL_COMPRESSED_RGBA_ASTC_4x4_KHR);
glfmtb(PTI_ASTC_4X4_SRGB, GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR);