From 2c0751c338040b08a23d3012831d0571561330ac Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 12 Oct 2015 10:52:46 +0200 Subject: [PATCH] Change texdisplay.frag shader to be work with LunarG intel icd compiler --- renderdoc/data/spv/texdisplay.frag | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/renderdoc/data/spv/texdisplay.frag b/renderdoc/data/spv/texdisplay.frag index 5b933c26e..e13982081 100644 --- a/renderdoc/data/spv/texdisplay.frag +++ b/renderdoc/data/spv/texdisplay.frag @@ -73,11 +73,7 @@ void main(void) vec4 col = textureLod(tex, scr.xy / texdisplay.TextureResolutionPS.xy, float(texdisplay.MipLevel)); - if(texdisplay.RawOutput != 0) - { - color_out = col; - return; - } + vec4 rawcol = col; // RGBM encoding if(texdisplay.HDRMul > 0.0f) @@ -107,5 +103,5 @@ void main(void) } } - color_out = col; + color_out = (texdisplay.RawOutput != 0 ? rawcol : col); }