From 870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10 Mon Sep 17 00:00:00 2001 From: Jürgen Doser Date: Thu, 6 Dec 2012 16:11:15 +0100 Subject: fix screen flickering black when rendering to texture --- src/mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mesh.cpp b/src/mesh.cpp index 0f075f72b..29b853143 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; } -- cgit v1.2.3