]> git.tdb.fi Git - libs/gl.git/commitdiff
Translate cube map sampling function for old GLSL versions
authorMikko Rasa <tdb@tdb.fi>
Thu, 11 Jul 2019 12:34:30 +0000 (15:34 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 11 Jul 2019 12:34:30 +0000 (15:34 +0300)
source/programcompiler.cpp

index 223392ffd4d1e21a4ac599405eba6b2bb1503aba..00d217a06aebb4dcb83b731427e466a584fffe6b 100644 (file)
@@ -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")