From: Mikko Rasa Date: Sat, 3 Dec 2016 15:56:50 +0000 (+0200) Subject: Don't bother with RAII here X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=14e5bc2c02ef8cc468d5727065ad732bb422a89c Don't bother with RAII here There are already RAII objects in the outer scope. --- diff --git a/source/pipeline.cpp b/source/pipeline.cpp index dc1eba1d..e4688257 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -214,8 +214,8 @@ void Pipeline::render(Renderer &renderer, const Tag &tag) const if(target[0]) { - BindRestore unbind_depth_test(static_cast(0)); - BindRestore unbind_blend(static_cast(0)); + DepthTest::unbind(); + Blend::unbind(); if(samples) target[0]->fbo.blit_from(target_ms->fbo, COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT, false);