mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 09:43:52 +01:00
remove examples warnings
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6090 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
c615e1e666
commit
9c15b9dfa9
@ -213,6 +213,7 @@ int main()
|
|||||||
terrain->getMeshBufferForLOD(*buffer, 0);
|
terrain->getMeshBufferForLOD(*buffer, 0);
|
||||||
video::S3DVertex2TCoords* data = (video::S3DVertex2TCoords*)buffer->getVertexBuffer().getData();
|
video::S3DVertex2TCoords* data = (video::S3DVertex2TCoords*)buffer->getVertexBuffer().getData();
|
||||||
// Work on data or get the IndexBuffer with a similar call.
|
// Work on data or get the IndexBuffer with a similar call.
|
||||||
|
(void)data; // disable unused variable warnings
|
||||||
buffer->drop(); // When done drop the buffer again.
|
buffer->drop(); // When done drop the buffer again.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -359,12 +359,12 @@ int IRRCALLCONV main(int argc, char* argv[])
|
|||||||
int fps = driver->getFPS();
|
int fps = driver->getFPS();
|
||||||
if (1 || lastFPS != fps)
|
if (1 || lastFPS != fps)
|
||||||
{
|
{
|
||||||
io::IAttributes * const attr = smgr->getParameters();
|
|
||||||
core::stringw str = L"Q3 [";
|
core::stringw str = L"Q3 [";
|
||||||
str += driver->getName();
|
str += driver->getName();
|
||||||
str += "] FPS:";
|
str += "] FPS:";
|
||||||
str += fps;
|
str += fps;
|
||||||
#ifdef _IRR_SCENEMANAGER_DEBUG
|
#ifdef _IRR_SCENEMANAGER_DEBUG
|
||||||
|
io::IAttributes * const attr = smgr->getParameters();
|
||||||
str += " Cull:";
|
str += " Cull:";
|
||||||
str += attr->getAttributeAsInt("calls");
|
str += attr->getAttributeAsInt("calls");
|
||||||
str += "/";
|
str += "/";
|
||||||
|
@ -346,6 +346,8 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user