mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Use TexrectCopyProgram if TexrectColorAndDepthCopyProgram is not awailable.
This commit is contained in:
parent
415e63d6d1
commit
62b4389d16
|
@ -1350,7 +1350,9 @@ void FrameBufferList::OverscanBuffer::draw(u32 _fullHeight, bool _PAL)
|
||||||
if (config.frameBufferEmulation.copyDepthToMainDepthBuffer != 0) {
|
if (config.frameBufferEmulation.copyDepthToMainDepthBuffer != 0) {
|
||||||
blitParams.tex[1] = m_pDepthTexture;
|
blitParams.tex[1] = m_pDepthTexture;
|
||||||
blitParams.combiner = CombinerInfo::get().getTexrectColorAndDepthCopyProgram();
|
blitParams.combiner = CombinerInfo::get().getTexrectColorAndDepthCopyProgram();
|
||||||
} else {
|
}
|
||||||
|
if (blitParams.combiner == nullptr) {
|
||||||
|
// copyDepthToMainDepthBuffer not set or not supported
|
||||||
blitParams.combiner = CombinerInfo::get().getTexrectCopyProgram();
|
blitParams.combiner = CombinerInfo::get().getTexrectCopyProgram();
|
||||||
}
|
}
|
||||||
blitParams.readBuffer = m_FBO;
|
blitParams.readBuffer = m_FBO;
|
||||||
|
@ -1518,7 +1520,9 @@ void FrameBufferList::renderBuffer()
|
||||||
if (config.frameBufferEmulation.copyDepthToMainDepthBuffer != 0) {
|
if (config.frameBufferEmulation.copyDepthToMainDepthBuffer != 0) {
|
||||||
blitParams.tex[1] = pBuffer->m_pDepthTexture;
|
blitParams.tex[1] = pBuffer->m_pDepthTexture;
|
||||||
blitParams.combiner = CombinerInfo::get().getTexrectColorAndDepthCopyProgram();
|
blitParams.combiner = CombinerInfo::get().getTexrectColorAndDepthCopyProgram();
|
||||||
} else {
|
}
|
||||||
|
if (blitParams.combiner == nullptr) {
|
||||||
|
// copyDepthToMainDepthBuffer not set or not supported
|
||||||
blitParams.combiner = CombinerInfo::get().getTexrectCopyProgram();
|
blitParams.combiner = CombinerInfo::get().getTexrectCopyProgram();
|
||||||
}
|
}
|
||||||
blitParams.readBuffer = readBuffer;
|
blitParams.readBuffer = readBuffer;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user