1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Set fullscreen scissor at the end of FrameBufferList::renderBuffer()

Fixed clipped screen issue with OBS studio, #1515
This commit is contained in:
Sergey Lipskiy 2017-08-06 00:16:34 +07:00
parent 3b9f16e8dd
commit 24b041b86e

View File

@ -1171,6 +1171,13 @@ void FrameBufferList::renderBuffer()
if (m_pCurrent != nullptr) {
gfxContext.bindFramebuffer(bufferTarget::DRAW_FRAMEBUFFER, m_pCurrent->m_FBO);
}
const s32 X = hOffset;
const s32 Y = wnd.getHeightOffset();
const s32 W = wnd.getWidth();
const s32 H = wnd.getHeight();
gfxContext.setScissor(X, Y, W, H);
gDP.changed |= CHANGED_SCISSOR;
}