]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix incorrect render target buffer names
authorMikko Rasa <tdb@tdb.fi>
Sat, 11 Sep 2021 14:24:16 +0000 (17:24 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 11 Sep 2021 14:31:43 +0000 (17:31 +0300)
source/render/rendertarget.cpp

index 34a08535ca4ca8bddac0149ab374188cb76b1e7a..f2f12d50c441fc70cf2439a025057dac13ff4b05 100644 (file)
@@ -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;