Commit 9ef56225 authored by hybrid's avatar hybrid

Add warning if mesh has too many vertics with 16bit indices.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2194 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 18b7b4a5
...@@ -269,7 +269,6 @@ bool CNullDriver::queryFeature(E_VIDEO_DRIVER_FEATURE feature) const ...@@ -269,7 +269,6 @@ bool CNullDriver::queryFeature(E_VIDEO_DRIVER_FEATURE feature) const
} }
//! sets transformation //! sets transformation
void CNullDriver::setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) void CNullDriver::setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat)
{ {
...@@ -283,14 +282,12 @@ const core::matrix4& CNullDriver::getTransform(E_TRANSFORMATION_STATE state) con ...@@ -283,14 +282,12 @@ const core::matrix4& CNullDriver::getTransform(E_TRANSFORMATION_STATE state) con
} }
//! sets a material //! sets a material
void CNullDriver::setMaterial(const SMaterial& material) void CNullDriver::setMaterial(const SMaterial& material)
{ {
} }
//! Removes a texture from the texture cache and deletes it, freeing lot of //! Removes a texture from the texture cache and deletes it, freeing lot of
//! memory. //! memory.
void CNullDriver::removeTexture(ITexture* texture) void CNullDriver::removeTexture(ITexture* texture)
...@@ -564,6 +561,8 @@ const core::rect<s32>& CNullDriver::getViewPort() const ...@@ -564,6 +561,8 @@ const core::rect<s32>& CNullDriver::getViewPort() const
//! draws a vertex primitive list //! draws a vertex primitive list
void CNullDriver::drawVertexPrimitiveList(const void* vertices, u32 vertexCount, const void* indexList, u32 primitiveCount, E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) void CNullDriver::drawVertexPrimitiveList(const void* vertices, u32 vertexCount, const void* indexList, u32 primitiveCount, E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType)
{ {
if ((iType==EIT_16BIT) && (vertexCount>65536))
os::Printer::log("Too many vertices for 16bit index type, render artifacts may occur.");
PrimitivesDrawn += primitiveCount; PrimitivesDrawn += primitiveCount;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment