]> git.cworth.org Git - vogl/blobdiff - src/voglcommon/vogl_program_state.cpp
- Fixing restore of indexed uniform buffer bindings
[vogl] / src / voglcommon / vogl_program_state.cpp
index bfc8a99f094ffeaa084db2697cf5a0970a96750a..5998a4149bd4e175d07a2c4d6a205ce91ecea702 100644 (file)
@@ -779,7 +779,7 @@ bool vogl_program_state::restore_uniforms(uint32 handle32, const vogl_context_in
         const GLint restore_location = restore_uniform.m_base_location;
 
         for (uint i = 0; i < array_size; i++)
-            remapper.declare_location(m_snapshot_handle, handle32, restore_uniform.m_base_location + i, restore_location + i);
+            remapper.declare_location(m_snapshot_handle, handle32, trace_uniform.m_base_location + i, restore_location + i);
 
         if (array_size)
         {