From a5db737c5595873fd728a9f7a415ff0f151c7630 Mon Sep 17 00:00:00 2001 From: ronag Date: Tue, 14 Jun 2011 07:36:19 +0000 Subject: [PATCH] 2.0. ogl_device: Optimized return of device_buffers. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@892 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- core/mixer/gpu/ogl_device.cpp | 6 +----- protocol/StdAfx.h | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/core/mixer/gpu/ogl_device.cpp b/core/mixer/gpu/ogl_device.cpp index 9e32ced2b..85f9638d5 100644 --- a/core/mixer/gpu/ogl_device.cpp +++ b/core/mixer/gpu/ogl_device.cpp @@ -78,11 +78,7 @@ safe_ptr ogl_device::create_device_buffer(size_t width, size_t he return safe_ptr(buffer.get(), [=](device_buffer*) { - executor_.begin_invoke([=] // Execute in ogl context in order to guarantee destruction of buffer in ogl context. - { - pool->push(buffer); - - }, high_priority); + pool->push(buffer); }); } diff --git a/protocol/StdAfx.h b/protocol/StdAfx.h index d9ad11aec..e8440258e 100644 --- a/protocol/StdAfx.h +++ b/protocol/StdAfx.h @@ -25,8 +25,6 @@ #pragma once -#include "../common/compiler/vs/disable_silly_warnings.h" - #define NOMINMAX #if defined(_MSC_VER) -- 2.39.5