]> git.tdb.fi Git - libs/gl.git/blobdiff - source/framebuffer.cpp
Rewrite Bind as two different classes
[libs/gl.git] / source / framebuffer.cpp
index ae8f4dd471a936881f77e8e569de8e97ba5bc8c0..672495182f7f641bbf419c2ea5b35dd28af6c28e 100644 (file)
@@ -213,7 +213,7 @@ void Framebuffer::detach(FramebufferAttachment attch)
 
 FramebufferStatus Framebuffer::check_status() const
 {
-       Bind _bind(this, true);
+       BindRestore _bind(this);
        return static_cast<FramebufferStatus>(glCheckFramebufferStatus(GL_FRAMEBUFFER));
 }
 
@@ -226,7 +226,7 @@ void Framebuffer::require_complete() const
 
 void Framebuffer::clear(BufferBits bits)
 {
-       Bind _bind(this, true);
+       BindRestore _bind(this);
        glClear(bits);
 }