]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix use of incorrect buffer in Mesh
authorMikko Rasa <tdb@tdb.fi>
Tue, 11 Oct 2022 08:49:03 +0000 (11:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 11 Oct 2022 08:51:18 +0000 (11:51 +0300)
Besides crashing the program in specific conditions this was causing
index buffers to sometimes lack a debug name.

source/core/mesh.cpp

index 6218601eb331ed15c1f3183dd1e36c8e586401c8..9e9b53762d70428f754a9b5931eab27155913170 100644 (file)
@@ -89,7 +89,7 @@ void Mesh::check_buffers(unsigned mask)
 
 #ifdef DEBUG
                        if(!debug_name.empty())
-                               vbuf->set_debug_name(debug_name+": IBO");
+                               ibuf->set_debug_name(debug_name+": IBO");
 #endif
                }