From: Mikko Rasa Date: Fri, 26 Sep 2014 10:06:52 +0000 (+0300) Subject: Deal with hash collisions in assigning uniform block bind points X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=69eff0e5febbb008f812d8e83e2332d11c42fbfd;p=libs%2Fgl.git Deal with hash collisions in assigning uniform block bind points --- diff --git a/source/program.cpp b/source/program.cpp index 66ca36b1..e16776f8 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -156,6 +157,7 @@ void Program::link() if(ARB_uniform_buffer_object) { + std::set used_bind_points; count = get_program_i(id, GL_ACTIVE_UNIFORM_BLOCKS); for(unsigned i=0; i