X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fframebuffer.cpp;h=672495182f7f641bbf419c2ea5b35dd28af6c28e;hp=ae8f4dd471a936881f77e8e569de8e97ba5bc8c0;hb=f33a98b1a044c8ac7b12778cbca6c4a124875e4a;hpb=a443cba337d8d69e23e64e19334d222e750c28b1 diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index ae8f4dd4..67249518 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -213,7 +213,7 @@ void Framebuffer::detach(FramebufferAttachment attch) FramebufferStatus Framebuffer::check_status() const { - Bind _bind(this, true); + BindRestore _bind(this); return static_cast(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); }