From f754943515b4301dc58ef0ffc37424d5d169db95 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 4 May 2015 20:17:13 +0600 Subject: [PATCH] Disable use of depth_compare_shader for platforms, which do not support GL_IMAGE_TEXTURES_SUPPORT --- src/GLSLCombiner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GLSLCombiner.cpp b/src/GLSLCombiner.cpp index d3034236..02de1061 100644 --- a/src/GLSLCombiner.cpp +++ b/src/GLSLCombiner.cpp @@ -601,8 +601,10 @@ ShaderCombiner::ShaderCombiner(Combiner & _color, Combiner & _alpha, const gDPCo strFragmentShader.append(fragment_shader_mipmap); else if (usesTex()) strFragmentShader.append(fragment_shader_readtex); +#ifdef GL_IMAGE_TEXTURES_SUPPORT if (video().getRender().isImageTexturesSupported() && config.frameBufferEmulation.N64DepthCompare != 0) strFragmentShader.append(depth_compare_shader_float); +#endif if (config.generalEmulation.enableNoise != 0) { strFragmentShader.append(fragment_shader_noise); strFragmentShader.append(fragment_shader_dither);