aboutsummaryrefslogtreecommitdiff
path: root/src/mesh.cpp
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-08 11:49:21 +0100
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-24 23:27:01 +0100
commit3a89c40e260ed98d2e63cb2e4850409ea0c8a9fe (patch)
tree0210e1f1ce7ddd15a52959c5c0bdb5ee5866abc6 /src/mesh.cpp
parentff678d1607375caeaaa5252d677b87e5f559a525 (diff)
downloadminetest-3a89c40e260ed98d2e63cb2e4850409ea0c8a9fe.tar.gz
minetest-3a89c40e260ed98d2e63cb2e4850409ea0c8a9fe.tar.bz2
minetest-3a89c40e260ed98d2e63cb2e4850409ea0c8a9fe.zip
mesh: warn only once about render-to-target not being supported
Diffstat (limited to 'src/mesh.cpp')
-rw-r--r--src/mesh.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesh.cpp b/src/mesh.cpp
index 5afb4af59..d0d8b0a6e 100644
--- 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;
}