diff options
author | Julian Sikorski <belegdol+github@gmail.com> | 2021-08-30 22:41:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 16:41:03 -0400 |
commit | 44a335f702c78d319452801fff5e9647fe3b5ec3 (patch) | |
tree | a8013e1d90008a2ca0ecc95c8d704b89b2f0da9b /src/osd/modules | |
parent | 860733a3dd2e91c7a64809a364fb3e0271101b53 (diff) |
Use D32F texture format instead of D24, should fix AMD hardware (#8516)
Diffstat (limited to 'src/osd/modules')
-rw-r--r-- | src/osd/modules/render/bgfx/target.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/render/bgfx/target.cpp b/src/osd/modules/render/bgfx/target.cpp index ff814ed649a..f900f4f99fb 100644 --- a/src/osd/modules/render/bgfx/target.cpp +++ b/src/osd/modules/render/bgfx/target.cpp @@ -42,7 +42,7 @@ bgfx_target::bgfx_target(std::string name, bgfx::TextureFormat::Enum format, uin m_textures[page] = bgfx::createTexture2D(m_width, m_height, false, 1, format, wrap_mode | filter_mode | BGFX_TEXTURE_RT); assert(m_textures[page].idx != 0xffff); - m_textures[m_page_count + page] = bgfx::createTexture2D(m_width, m_height, false, 1, bgfx::TextureFormat::D24, depth_flags | BGFX_TEXTURE_RT); + m_textures[m_page_count + page] = bgfx::createTexture2D(m_width, m_height, false, 1, bgfx::TextureFormat::D32F, depth_flags | BGFX_TEXTURE_RT); assert(m_textures[m_page_count + page].idx != 0xffff); bgfx::TextureHandle handles[2] = { m_textures[page], m_textures[m_page_count + page] }; @@ -72,7 +72,7 @@ bgfx_target::bgfx_target(void *handle, uint16_t width, uint16_t height) , m_page_count(0) { m_targets = new bgfx::FrameBufferHandle[1]; - m_targets[0] = bgfx::createFrameBuffer(handle, width, height, bgfx::TextureFormat::Count, bgfx::TextureFormat::D24); + m_targets[0] = bgfx::createFrameBuffer(handle, width, height, bgfx::TextureFormat::Count, bgfx::TextureFormat::D32F); // No backing texture } |