From: Mikko Rasa Date: Sat, 27 Dec 2014 00:13:38 +0000 (+0200) Subject: Alias texture lookup functions of all dimensionalities X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d70abd1a337cb6604170b5d4120fd4f223b4d7d8;p=libs%2Fgl.git Alias texture lookup functions of all dimensionalities --- diff --git a/source/programbuilder.cpp b/source/programbuilder.cpp index 002e3a27..de1fb160 100644 --- a/source/programbuilder.cpp +++ b/source/programbuilder.cpp @@ -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