From d16a26aa83ac2a55a1d30d608d8a81c12d1b8694 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Mon, 30 Aug 2021 11:46:16 +0200 Subject: [PATCH] Enable DTX1 and 3 on RW GL (where applicable) DTX1 and DTX3 is supported by Linux drivers for long time and it can be enable at least where is the hardware support available. - improves first time loading - save about 183 MB on storage - saves GPU memory (not measured) - brings slightly performance boost (1-2 fps on Intel HD 620) --- src/rw/TexRead.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rw/TexRead.cpp b/src/rw/TexRead.cpp index 1f96180b..13c200a1 100644 --- a/src/rw/TexRead.cpp +++ b/src/rw/TexRead.cpp @@ -294,7 +294,7 @@ CanVideoCardDoDXT(void) #ifdef LIBRW // TODO #ifdef RW_OPENGL - return false; + return rw::gl3::gl3Caps.dxtSupported; #else return true; #endif