From 870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Doser?= Date: Thu, 6 Dec 2012 16:11:15 +0100 Subject: [PATCH] fix screen flickering black when rendering to texture --- src/mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index 0f075f72..29b85314 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -443,7 +443,7 @@ video::ITexture *generateTextureFromMesh(scene::IMesh *mesh, } // Set render target - driver->setRenderTarget(rtt, true, true, video::SColor(0,0,0,0)); + driver->setRenderTarget(rtt, false, true, video::SColor(0,0,0,0)); // Get a scene manager scene::ISceneManager *smgr_main = device->getSceneManager(); @@ -478,7 +478,7 @@ video::ITexture *generateTextureFromMesh(scene::IMesh *mesh, smgr->drop(); // Unset render target - driver->setRenderTarget(0, true, true, 0); + driver->setRenderTarget(0, false, true, 0); return rtt; } -- 2.30.2