From 69eff0e5febbb008f812d8e83e2332d11c42fbfd Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 26 Sep 2014 13:06:52 +0300 Subject: [PATCH] Deal with hash collisions in assigning uniform block bind points --- source/program.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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