Skip to content

Commit

Permalink
Update GLideN64 submodule reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
clobber committed Sep 26, 2018
1 parent 9572924 commit 04ce865
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions Compatibility/OpenGL/FrameBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,15 +1248,12 @@ void FrameBufferList::OverscanBuffer::draw(u32 _fullHeight, bool _PAL)
blitParams.invertY = true;

gfxContext.clearColorBuffer(0.0f, 0.0f, 0.0f, 0.0f);
drawer.blitOrCopyTexturedRect(blitParams);
// drawer.copyTexturedRect(blitParams);
// drawer.blitOrCopyTexturedRect(blitParams);
drawer.copyTexturedRect(blitParams);
}

void FrameBufferList::renderBuffer()
{
if (VI.width == 0 || *REG.VI_WIDTH == 0 || *REG.VI_H_START == 0) // H width is zero. Don't draw
return;

if (g_debugger.isDebugMode()) {
g_debugger.draw();
return;
Expand All @@ -1268,8 +1265,14 @@ void FrameBufferList::renderBuffer()
}

RdpUpdateResult rdpRes;
if (!rdp_update(rdpRes))
if (!rdp_update(rdpRes)) {
gfxContext.bindFramebuffer(bufferTarget::DRAW_FRAMEBUFFER, ObjectHandle::defaultFramebuffer);
gfxContext.clearColorBuffer(0.0f, 0.0f, 0.0f, 0.0f);
dwnd().swapBuffers();
if (m_pCurrent != nullptr)
gfxContext.bindFramebuffer(bufferTarget::DRAW_FRAMEBUFFER, m_pCurrent->m_FBO);
return;
}

FrameBuffer *pBuffer = findBuffer(rdpRes.vi_origin);
if (pBuffer == nullptr)
Expand Down

0 comments on commit 04ce865

Please sign in to comment.