mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
Add opt-in compile flag for GL read back emulation (#2305)
Co-authored-by: Christophe Dehais <christophe.dehais@fittingbox.com>
This commit is contained in:
committed by
GitHub
parent
70f8897056
commit
6b790dc96b
@@ -2764,7 +2764,7 @@ namespace bgfx { namespace gl
|
||||
: 0
|
||||
;
|
||||
|
||||
g_caps.supported |= m_readBackSupported
|
||||
g_caps.supported |= (m_readBackSupported || BX_ENABLED(BGFX_GL_CONFIG_TEXTURE_READ_BACK_EMULATION))
|
||||
? BGFX_CAPS_TEXTURE_READ_BACK
|
||||
: 0
|
||||
;
|
||||
@@ -3263,7 +3263,7 @@ namespace bgfx { namespace gl
|
||||
|
||||
GL_CHECK(glBindTexture(texture.m_target, 0) );
|
||||
}
|
||||
else
|
||||
else if (BX_ENABLED(BGFX_GL_CONFIG_TEXTURE_READ_BACK_EMULATION))
|
||||
{
|
||||
const TextureGL& texture = m_textures[_handle.idx];
|
||||
const bool compressed = bimg::isCompressed(bimg::TextureFormat::Enum(texture.m_textureFormat) );
|
||||
|
||||
Reference in New Issue
Block a user