Browse Source

glgsg: InternalName move tweaks

rdb 2 months ago
parent
commit
318170aec7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/glstuff/glShaderContext_src.cxx

+ 2 - 2
panda/src/glstuff/glShaderContext_src.cxx

@@ -938,7 +938,7 @@ reflect_program(GLuint program, SparseArray &active_locations) {
       if (p != nullptr) {
         // It's an array, this is a bit annoying.
         CPT_InternalName name = InternalName::make(std::string(block_name_cstr, p - block_name_cstr));
-        SSBO &ssbo = ssbos[name];
+        SSBO &ssbo = ssbos[std::move(name)];
         size_t i = 0;
         do {
           ++p;
@@ -957,7 +957,7 @@ reflect_program(GLuint program, SparseArray &active_locations) {
       } else {
         // Simple case.  We can already jot down the binding, so we don't have
         // to query it later.
-        CPT(InternalName) name = InternalName::make(std::string(block_name_cstr));
+        CPT_InternalName name = InternalName::make(std::string(block_name_cstr));
         _bindings[name] = values[0];
         ssbos[std::move(name)];
       }