]> git.tdb.fi Git - libs/gl.git/commitdiff
Alias texture lookup functions of all dimensionalities
authorMikko Rasa <tdb@tdb.fi>
Sat, 27 Dec 2014 00:13:38 +0000 (02:13 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 27 Dec 2014 00:13:38 +0000 (02:13 +0200)
source/programbuilder.cpp

index 002e3a275f7ef7e1c7eaa05e08e277d9106da734..de1fb1604db2ea5dcd77c20a2fbf036f18fe3894 100644 (file)
@@ -238,7 +238,10 @@ ProgramBuilder::ProgramBuilder(const StandardFeatures &f):
 
        if(!features.legacy)
        {
+               aliases["texture1D"] = "texture";
                aliases["texture2D"] = "texture";
+               aliases["texture3D"] = "texture";
+               aliases["textureCube"] = "texture";
                aliases["shadow2D"] = "texture";
        }
        else