mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Expand workarounds for format inconsistency with BGRA8888 extension on GLES
fixes #16011
This commit is contained in:
parent
37d2bc8a5f
commit
cf07b56235
2 changed files with 17 additions and 9 deletions
|
@ -63,8 +63,8 @@ void COpenGLES2Driver::initFeatures()
|
|||
TextureFormats[ECF_D24S8] = {GL_DEPTH24_STENCIL8, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8};
|
||||
|
||||
// NOTE a recent (2024) revision of EXT_texture_format_BGRA8888 also
|
||||
// adds a sized format GL_BGRA8_EXT. We have a workaround in place to
|
||||
// fix up the InternalFormat in case of render targets.
|
||||
// adds a sized format GL_BGRA8_EXT. Because we can't rely on that we
|
||||
// have stupid workarounds in place on texture creation...
|
||||
if (FeatureAvailable[IRR_GL_EXT_texture_format_BGRA8888] || FeatureAvailable[IRR_GL_APPLE_texture_format_BGRA8888])
|
||||
TextureFormats[ECF_A8R8G8B8] = {GL_BGRA, GL_BGRA, GL_UNSIGNED_BYTE};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue