projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
543fc67
)
fix screen flickering black when rendering to texture
author
Jürgen Doser
<jurgen.doser@gmail.com>
Thu, 6 Dec 2012 15:11:15 +0000
(16:11 +0100)
committer
Perttu Ahola
<celeron55@gmail.com>
Thu, 6 Dec 2012 17:56:49 +0000
(19:56 +0200)
src/mesh.cpp
patch
|
blob
|
history
diff --git
a/src/mesh.cpp
b/src/mesh.cpp
index 0f075f72b8e64448d00a34ec9b90317526856d48..29b85314322885d692fd79c59069769cb82978be 100644
(file)
--- a/
src/mesh.cpp
+++ b/
src/mesh.cpp
@@
-443,7
+443,7
@@
video::ITexture *generateTextureFromMesh(scene::IMesh *mesh,
}
// Set render target
- driver->setRenderTarget(rtt,
tru
e, true, video::SColor(0,0,0,0));
+ driver->setRenderTarget(rtt,
fals
e, 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,
tru
e, true, 0);
+ driver->setRenderTarget(0,
fals
e, true, 0);
return rtt;
}