1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix DepthBufferToRDRAM::CopyToRDRAM when multisampling is on.

This commit is contained in:
Sergey Lipskiy 2015-02-26 18:00:40 +06:00
parent d06befb4eb
commit 59e86b7794

View File

@ -865,7 +865,12 @@ bool DepthBufferToRDRAM::CopyToRDRAM( u32 _address) {
m_lastDList = RSP.DList;
DepthBuffer * pDepthBuffer = pBuffer->m_pDepthBuffer;
const u32 address = pDepthBuffer->m_address;
glBindFramebuffer(GL_READ_FRAMEBUFFER, pBuffer->m_FBO);
if (config.video.multisampling == 0)
glBindFramebuffer(GL_READ_FRAMEBUFFER, pBuffer->m_FBO);
else {
pDepthBuffer->resolveDepthBufferTexture(pBuffer);
glBindFramebuffer(GL_READ_FRAMEBUFFER, pBuffer->m_resolveFBO);
}
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_FBO);
glDisable(GL_SCISSOR_TEST);
glBlitFramebuffer(