mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
mesh: warn only once about render-to-target not being supported
This commit is contained in:
parent
ff678d1607
commit
3a89c40e26
@ -422,8 +422,13 @@ video::ITexture *generateTextureFromMesh(scene::IMesh *mesh,
|
|||||||
video::IVideoDriver *driver = device->getVideoDriver();
|
video::IVideoDriver *driver = device->getVideoDriver();
|
||||||
if(driver->queryFeature(video::EVDF_RENDER_TO_TARGET) == false)
|
if(driver->queryFeature(video::EVDF_RENDER_TO_TARGET) == false)
|
||||||
{
|
{
|
||||||
errorstream<<"generateTextureFromMesh(): EVDF_RENDER_TO_TARGET"
|
static bool warned = false;
|
||||||
" not supported."<<std::endl;
|
if(!warned)
|
||||||
|
{
|
||||||
|
errorstream<<"generateTextureFromMesh(): EVDF_RENDER_TO_TARGET"
|
||||||
|
" not supported."<<std::endl;
|
||||||
|
warned = true;
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user