From 7a7e1c4c249c4e8a3287d07f81a9f0fa944f894b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 12 Sep 2016 15:08:10 +0300 Subject: [PATCH] Add aliases for uniform statements without the type suffix --- source/programdata.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.45.2