diff options
author | 2022-03-16 03:32:33 +0100 | |
---|---|---|
committer | 2022-03-15 22:32:33 -0400 | |
commit | 92ece92fedb15efa82a12901bc343b46a0f06905 (patch) | |
tree | dc16d467c041bb86470b409111d156ef803b73d3 /src/osd/modules/render/bgfx/view.cpp | |
parent | 8d267ad2c7d3e757bf47d05ce816e060e37de401 (diff) |
Updated BGFX fixes; verified as working on Linux and Windows. (#9420)
* -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz]
* -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz]
* -bgfx: Fixed issues from the previous batch of changes. [Ryan Holtz]
* -osdwindow: Remove no-longer-needed addition of post_create(). [Ryan Holtz]
Diffstat (limited to 'src/osd/modules/render/bgfx/view.cpp')
-rw-r--r-- | src/osd/modules/render/bgfx/view.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/osd/modules/render/bgfx/view.cpp b/src/osd/modules/render/bgfx/view.cpp index 4385500edb1..1e3b2a6000d 100644 --- a/src/osd/modules/render/bgfx/view.cpp +++ b/src/osd/modules/render/bgfx/view.cpp @@ -26,11 +26,14 @@ void bgfx_view::update() { } void bgfx_ortho_view::setup() { - if (m_window_index != 0) + if (m_window_index == 0) + { + bgfx::setViewFrameBuffer(m_index, BGFX_INVALID_HANDLE); + } + else { bgfx::setViewFrameBuffer(m_index, m_backbuffer->target()); } - bgfx::setViewRect(m_index, 0, 0, m_view_width, m_view_height); while ((m_index + 1) > m_seen_views.size()) |