diff options
author | Jürgen Doser <jurgen.doser@gmail.com> | 2012-12-06 16:11:15 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-06 19:56:49 +0200 |
commit | 870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10 (patch) | |
tree | d9112f4de10a7bec9527d46d329bc7675effb808 /src | |
parent | 543fc6702f4ae9ad4dbc8289b8c3ed7d8b332cb1 (diff) | |
download | minetest-870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10.tar.gz minetest-870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10.tar.bz2 minetest-870f7bcc932b7e9345a6bd5dfd233a9f5b6a8a10.zip |
fix screen flickering black when rendering to texture
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |