diff options
-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; } |