Enabled user shader for a cameratexture

This commit is contained in:
ZZYZX 2016-12-30 23:26:56 +02:00 committed by Christoph Oelckers
parent 267b1842b4
commit c845fc126a

View file

@ -447,6 +447,11 @@ FMaterial::FMaterial(FTexture * tx, bool expanded)
} }
else if (tx->bHasCanvas) else if (tx->bHasCanvas)
{ {
if (tx->gl_info.shaderindex >= FIRST_USER_SHADER)
{
mShaderIndex = tx->gl_info.shaderindex;
}
// no brightmap for cameratexture
} }
else else
{ {