From e25ceb579efb895def2df2f97af16ecfe34c42f4 Mon Sep 17 00:00:00 2001 From: Micah Acinapura Date: Thu, 22 Aug 2019 13:44:46 -0400 Subject: [PATCH] fix for gpus that dont support const return values --- shaders/hdr.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/hdr.glsl b/shaders/hdr.glsl index c9909b03ea..2fca4496c5 100644 --- a/shaders/hdr.glsl +++ b/shaders/hdr.glsl @@ -41,7 +41,7 @@ const mat3 XYZ2RGB = mat3( // Gamma correction for linear RGB to sRGB // See wiki: https://en.wikipedia.org/wiki/SRGB#The_sRGB_transfer_function_.28.22gamma.22.29 -const float gammaF(const float u) { +float gammaF(const float u) { if (u < 0.0031308) { return 12.92 * u; } else {