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

Don't set uniforms for N64 depth compare when it is not enabled.

This commit is contained in:
Sergey Lipskiy 2015-03-24 19:06:35 +06:00
parent e8bb0a8438
commit 7af7e87b7b

View File

@ -878,7 +878,7 @@ void ShaderCombiner::updateDepthInfo(bool _bForce) {
else
_setFV2Uniform(m_uniforms.uDepthScale, gSP.viewport.vscale[2], gSP.viewport.vtrans[2], _bForce);
if (!video().getRender().isImageTexturesSupported())
if (config.frameBufferEmulation.N64DepthCompare == 0 || !video().getRender().isImageTexturesSupported())
return;
FrameBuffer * pBuffer = frameBufferList().getCurrent();