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

Use TexrectCopyProgram if TexrectColorAndDepthCopyProgram is not awailable.

This commit is contained in:
Sergey Lipskiy 2019-09-29 16:13:03 +07:00
parent 415e63d6d1
commit 62b4389d16

View File

@ -1350,7 +1350,9 @@ void FrameBufferList::OverscanBuffer::draw(u32 _fullHeight, bool _PAL)
if (config.frameBufferEmulation.copyDepthToMainDepthBuffer != 0) {
blitParams.tex[1] = m_pDepthTexture;
blitParams.combiner = CombinerInfo::get().getTexrectColorAndDepthCopyProgram();
} else {
}
if (blitParams.combiner == nullptr) {
// copyDepthToMainDepthBuffer not set or not supported
blitParams.combiner = CombinerInfo::get().getTexrectCopyProgram();
}
blitParams.readBuffer = m_FBO;
@ -1518,7 +1520,9 @@ void FrameBufferList::renderBuffer()
if (config.frameBufferEmulation.copyDepthToMainDepthBuffer != 0) {
blitParams.tex[1] = pBuffer->m_pDepthTexture;
blitParams.combiner = CombinerInfo::get().getTexrectColorAndDepthCopyProgram();
} else {
}
if (blitParams.combiner == nullptr) {
// copyDepthToMainDepthBuffer not set or not supported
blitParams.combiner = CombinerInfo::get().getTexrectCopyProgram();
}
blitParams.readBuffer = readBuffer;