From 7728875a7f9fb39344af23da43837158d9f64032 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 13 Jul 2017 05:57:12 -0400 Subject: [PATCH] - Added 'enabled' property for PP shaders, to automatically enable them without ZScript --- src/gl/shaders/gl_shader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gl/shaders/gl_shader.cpp b/src/gl/shaders/gl_shader.cpp index c944f27c5..b0b3ea32b 100644 --- a/src/gl/shaders/gl_shader.cpp +++ b/src/gl/shaders/gl_shader.cpp @@ -723,6 +723,10 @@ void gl_ParseHardwareShader(FScanner &sc, int deflump) if (parsedType != PostProcessUniformType::Undefined) shaderdesc.Uniforms[uniformName].Type = parsedType; } + else if (sc.Compare("enabled")) + { + shaderdesc.Enabled = true; + } } PostProcessShaders.Push(shaderdesc);