]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/rendertarget.cpp
Fix incorrect render target buffer names
[libs/gl.git] / source / render / rendertarget.cpp
index 7bdac6703e3554e60162a90839139c1f4efba4f3..f2f12d50c441fc70cf2439a025057dac13ff4b05 100644 (file)
@@ -152,8 +152,6 @@ void RenderTarget::init(unsigned w, unsigned h, unsigned s, const RenderTargetFo
                }
                buffers.push_back(tgt);
        }
-
-       fbo.require_complete();
 }
 
 RenderTarget::~RenderTarget()
@@ -186,11 +184,6 @@ const Texture2D &RenderTarget::get_target_texture(RenderOutput o) const
        return get_target_texture(index);
 }
 
-void RenderTarget::blit_from(const RenderTarget &other)
-{
-       fbo.blit_from(other.fbo, COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT, false);
-}
-
 void RenderTarget::set_debug_name(const string &name)
 {
 #ifdef DEBUG
@@ -207,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;