GL: Fix texture format conversion in TextureGL::update. Closes #2956. (#3738)

This commit is contained in:
Branimir Karadžić
2026-06-07 09:29:29 -07:00
committed by GitHub
parent e92490c3f7
commit 5ce8af5d4f

View File

@@ -6117,7 +6117,7 @@ namespace bgfx { namespace gl
; ;
const bool unpackRowLength = !!BGFX_CONFIG_RENDERER_OPENGL || s_extension[Extension::EXT_unpack_subimage].m_supported; const bool unpackRowLength = !!BGFX_CONFIG_RENDERER_OPENGL || s_extension[Extension::EXT_unpack_subimage].m_supported;
const bool convert = false const bool convert = false
|| (compressed && m_textureFormat != m_requestedFormat) || m_textureFormat != m_requestedFormat
|| swizzle || swizzle
; ;