Permalink
Browse files

bgfx: Use bgfx::ViewMode::Sequential, fixes handheld overlays, nw

  • Loading branch information...
MooglyGuy committed Dec 31, 2017
1 parent 1ec91f5 commit 726157a7f2bc3694aabd768f44815bb062ca243c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/osd/modules/render/drawbgfx.cpp
@@ -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);

0 comments on commit 726157a

Please sign in to comment.