From: Mikko Rasa Date: Mon, 12 Sep 2016 12:08:10 +0000 (+0300) Subject: Add aliases for uniform statements without the type suffix X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7a7e1c4c249c4e8a3287d07f81a9f0fa944f894b;p=libs%2Fgl.git Add aliases for uniform statements without the type suffix --- diff --git a/source/programdata.cpp b/source/programdata.cpp index f75a4ebd..9b27af50 100644 --- a/source/programdata.cpp +++ b/source/programdata.cpp @@ -366,10 +366,15 @@ ProgramData::ProgramUniforms::ProgramUniforms(): ProgramData::Loader::Loader(ProgramData &pd): DataFile::ObjectLoader(pd) { + add("uniform", &Loader::uniform1i); add("uniform1i", &Loader::uniform1i); + add("uniform", &Loader::uniform1f); add("uniform1f", &Loader::uniform1f); + add("uniform", &Loader::uniform2f); add("uniform2f", &Loader::uniform2f); + add("uniform", &Loader::uniform3f); add("uniform3f", &Loader::uniform3f); + add("uniform", &Loader::uniform4f); add("uniform4f", &Loader::uniform4f); }