From f88da8bea44b40b9e056d2630cac1ca28c3653d6 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sun, 15 Sep 2013 16:00:46 -0700 Subject: [PATCH] GL: Fixed ETC1 format override logic. --- src/renderer_gl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 1a089efc..9bfe8339 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2397,7 +2397,8 @@ namespace bgfx s_textureFormat[TextureFormat::ETC2A ].m_supported = etc2Supported; s_textureFormat[TextureFormat::ETC2A1].m_supported = etc2Supported; - if (etc2Supported) + if (!s_textureFormat[TextureFormat::ETC1].m_supported + && etc2Supported) { // When ETC2 is supported override ETC1 texture format settings. s_textureFormat[TextureFormat::ETC1].m_internalFmt = GL_COMPRESSED_RGB8_ETC2;