From 055ea58766264e449d194abb0937b8e58b5bad59 Mon Sep 17 00:00:00 2001 From: uis Date: Mon, 19 Aug 2024 18:42:06 +0300 Subject: [PATCH] gl_rmain: temproary disallow DXT on GLES There seems to exis EXT_texture_compression_s3tc and NV_ extensions. But I'm not sure if there is any GLES driver supporting them. Lima says it is supported, but I don't see it in code. Intel as I remember said s3tc is not supported in GLES. --- gl_rmain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gl_rmain.c b/gl_rmain.c index 522bda3e..3385e52a 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -153,7 +153,11 @@ cvar_t gl_fogstart = {CF_CLIENT, "gl_fogstart", "0", "nehahra fog start distance cvar_t gl_fogend = {CF_CLIENT, "gl_fogend","0", "nehahra fog end distance (for Nehahra compatibility only)"}; cvar_t gl_skyclip = {CF_CLIENT, "gl_skyclip", "4608", "nehahra farclip distance - the real fog end (for Nehahra compatibility only)"}; +#ifdef USE_GLES2 +cvar_t r_texture_dds_load = {CF_CLIENT | CF_READONLY, "r_texture_dds_load", "0", "load compressed dds/filename.dds texture instead of filename.tga, if the file exists (not supported in GLES)"}; +#else cvar_t r_texture_dds_load = {CF_CLIENT | CF_ARCHIVE, "r_texture_dds_load", "0", "load compressed dds/filename.dds texture instead of filename.tga, if the file exists (requires driver support)"}; +#endif cvar_t r_texture_dds_save = {CF_CLIENT | CF_ARCHIVE, "r_texture_dds_save", "0", "save compressed dds/filename.dds texture when filename.tga is loaded, so that it can be loaded instead next time"}; cvar_t r_usedepthtextures = {CF_CLIENT | CF_ARCHIVE, "r_usedepthtextures", "1", "use depth texture instead of depth renderbuffer where possible, uses less video memory but may render slower (or faster) depending on hardware"}; -- 2.39.2