From: Jürgen Doser Date: Thu, 6 Dec 2012 15:11:15 +0000 (+0100) Subject: fix screen flickering black when rendering to texture X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10;p=zefram%2Fminetest%2Fminetest_engine.git fix screen flickering black when rendering to texture --- 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; }