From: Mikko Rasa Date: Sat, 11 Sep 2021 14:24:16 +0000 (+0300) Subject: Fix incorrect render target buffer names X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=328b67fa59ce6736949732ea8ff4ef7c6675e200;p=libs%2Fgl.git Fix incorrect render target buffer names --- diff --git a/source/render/rendertarget.cpp b/source/render/rendertarget.cpp index 34a08535..f2f12d50 100644 --- a/source/render/rendertarget.cpp +++ b/source/render/rendertarget.cpp @@ -200,9 +200,9 @@ void RenderTarget::set_debug_name(const string &name) buf_name = Msp::format("%s/color%d", name, type); if(samples) - buffers[i].buffer->set_debug_name(buf_name+".tex2d"); + buffers[i].buffer->set_debug_name(buf_name+".rbuf"); else - buffers[i].texture->set_debug_name(buf_name+".rbuf"); + buffers[i].texture->set_debug_name(buf_name+".tex2d"); } #else (void)name;