mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
bgfx: Use bgfx::ViewMode::Sequential, fixes handheld overlays, nw
This commit is contained in:
parent
1ec91f5023
commit
726157a7f2
@ -926,6 +926,7 @@ bool renderer_bgfx::update_dimensions()
|
||||
|
||||
bgfx::setViewFrameBuffer(s_current_view, m_framebuffer->target());
|
||||
bgfx::setViewClear(s_current_view, BGFX_CLEAR_COLOR | BGFX_CLEAR_DEPTH, 0x00000000, 1.0f, 0);
|
||||
bgfx::setViewMode(s_current_view, bgfx::ViewMode::Sequential);
|
||||
bgfx::touch(s_current_view);
|
||||
bgfx::frame();
|
||||
return true;
|
||||
@ -967,6 +968,7 @@ void renderer_bgfx::setup_view(uint32_t view_index, bool screen)
|
||||
bgfx::setViewFrameBuffer(view_index, m_avi_target->target());
|
||||
}
|
||||
bgfx::setViewClear(view_index, BGFX_CLEAR_COLOR | BGFX_CLEAR_DEPTH, 0x00000000, 1.0f, 0);
|
||||
bgfx::setViewMode(s_current_view, bgfx::ViewMode::Sequential);
|
||||
}
|
||||
|
||||
setup_matrices(view_index, screen);
|
||||
|
Loading…
Reference in New Issue
Block a user