diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2012-02-08 11:49:21 +0100 |
---|---|---|
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2012-02-24 23:27:01 +0100 |
commit | 3a89c40e260ed98d2e63cb2e4850409ea0c8a9fe (patch) | |
tree | 0210e1f1ce7ddd15a52959c5c0bdb5ee5866abc6 /src/mesh.cpp | |
parent | ff678d1607375caeaaa5252d677b87e5f559a525 (diff) | |
download | minetest-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.cpp | 9 |
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; } |