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:
ff678d1
)
mesh: warn only once about render-to-target not being supported
author
Jonathan Neuschäfer
<j.neuschaefer@gmx.net>
Wed, 8 Feb 2012 10:49:21 +0000
(11:49 +0100)
committer
Jonathan Neuschäfer
<j.neuschaefer@gmx.net>
Fri, 24 Feb 2012 22:27:01 +0000
(23:27 +0100)
src/mesh.cpp
patch
|
blob
|
history
diff --git
a/src/mesh.cpp
b/src/mesh.cpp
index 5afb4af592ba7306831212290895eb5523a15a85..d0d8b0a6ed83133b81d8a0648e1c63bb95ab06fb 100644
(file)
--- a/
src/mesh.cpp
+++ b/
src/mesh.cpp
@@
-422,8
+422,13
@@
video::ITexture *generateTextureFromMesh(scene::IMesh *mesh,
video::IVideoDriver *driver = device->getVideoDriver();
if(driver->queryFeature(video::EVDF_RENDER_TO_TARGET) == false)
{
- errorstream<<"generateTextureFromMesh(): EVDF_RENDER_TO_TARGET"
- " not supported."<<std::endl;
+ static bool warned = false;
+ if(!warned)
+ {
+ errorstream<<"generateTextureFromMesh(): EVDF_RENDER_TO_TARGET"
+ " not supported."<<std::endl;
+ warned = true;
+ }
return NULL;
}