From d70abd1a337cb6604170b5d4120fd4f223b4d7d8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 27 Dec 2014 02:13:38 +0200 Subject: [PATCH] Alias texture lookup functions of all dimensionalities --- source/programbuilder.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.43.0