From 4355b5450f61660f2b2e536edd6184e26efaf2a4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 11 Oct 2022 11:49:03 +0300 Subject: [PATCH] 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. --- source/core/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.45.2