Add a workaround for the 16 vertex attribute limit on nvidia gl

This commit is contained in:
James Urquhart 2016-08-06 14:39:40 +01:00
parent 6283a6b9da
commit ace01a313c
4 changed files with 11 additions and 19 deletions

View file

@ -105,6 +105,8 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
if(element.getStreamIndex() != stream)
continue;
AssertFatal(!mFormat->hasBlendIndices() || !element.isSemantic(GFXSemantic::TEXCOORD) || (mFormat->hasBlendIndices() && element.isSemantic(GFXSemantic::TEXCOORD) && element.getSemanticIndex() < 2), "skinning with more than 2 used texcoords!");
vertexSize += element.getSizeInBytes();
}