From 14e5bc2c02ef8cc468d5727065ad732bb422a89c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 3 Dec 2016 17:56:50 +0200 Subject: [PATCH] Don't bother with RAII here There are already RAII objects in the outer scope. --- source/pipeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.45.2