From 3aee73eaa49490f2414c2ccf5563924f443cf2ba Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Fri, 30 Dec 2016 23:26:56 +0200 Subject: [PATCH] Enabled user shader for a cameratexture --- src/gl/textures/gl_material.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gl/textures/gl_material.cpp b/src/gl/textures/gl_material.cpp index 5aa1d75b9..4be2e9619 100644 --- a/src/gl/textures/gl_material.cpp +++ b/src/gl/textures/gl_material.cpp @@ -447,6 +447,11 @@ FMaterial::FMaterial(FTexture * tx, bool expanded) } else if (tx->bHasCanvas) { + if (tx->gl_info.shaderindex >= FIRST_USER_SHADER) + { + mShaderIndex = tx->gl_info.shaderindex; + } + // no brightmap for cameratexture } else {