From: Mikko Rasa Date: Tue, 11 Oct 2022 08:49:03 +0000 (+0300) Subject: Fix use of incorrect buffer in Mesh X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=4355b5450f61660f2b2e536edd6184e26efaf2a4;p=libs%2Fgl.git Fix use of incorrect buffer in Mesh Besides crashing the program in specific conditions this was causing index buffers to sometimes lack a debug name. --- diff --git a/source/core/mesh.cpp b/source/core/mesh.cpp index 6218601e..9e9b5376 100644 --- a/source/core/mesh.cpp +++ b/source/core/mesh.cpp @@ -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 }