From: Mikko Rasa Date: Thu, 11 Jul 2019 12:34:30 +0000 (+0300) Subject: Translate cube map sampling function for old GLSL versions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ae1fe9121b341c7852e54aa586f23edaf21b664c;p=libs%2Fgl.git Translate cube map sampling function for old GLSL versions --- diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 223392ff..00d217a0 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -1948,6 +1948,8 @@ void ProgramCompiler::LegacyConverter::visit(FunctionCall &call) call.name = "texture2D"; else if(type=="sampler3D") call.name = "texture3D"; + else if(type=="samplerCube") + call.name = "textureCube"; else if(type=="sampler1DShadow") call.name = "shadow1D"; else if(type=="sampler2DShadow")