From 1d9da40f5b1d89df0a88afbb1b95df55a5f3ef29 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 May 2022 11:37:46 +0200 Subject: [PATCH] - fixed user shader compilation in OpenGL --- src/common/rendering/gl/gl_shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/rendering/gl/gl_shader.cpp b/src/common/rendering/gl/gl_shader.cpp index 896f4a62e7..80e6a0e8a8 100644 --- a/src/common/rendering/gl/gl_shader.cpp +++ b/src/common/rendering/gl/gl_shader.cpp @@ -830,6 +830,7 @@ bool FShaderCollection::CompileNextShader() FString defines = defaultshaders[usershaders[i].shaderType].Defines + usershaders[i].defines; FShader *shc = Compile(name, usershaders[i].shader, defaultshaders[usershaders[i].shaderType].lightfunc, defines, true, mPassType); mMaterialShaders.Push(shc); + mCompileIndex++; if (mCompileIndex >= (int)usershaders.Size()) { mCompileIndex = 0;