解决使用3DSprite出现vertices exceed the max size of vertex buffer, will set count to _vertexNumber-begin错误
2014-11-17 10:48
615 查看
老版本问题,问题出在这个函数里面 MeshVertexData::create 。
您可以把函数里面的
vertexdata->_vertexBuffer->updateVertices((void*)&meshdata.vertex[0], (int)meshdata.vertex.size() * 4,
0);
替换成:
vertexdata->_vertexBuffer->updateVertices((void*)&meshdata.vertex[0], (int)meshdata.vertex.size() * 4 /
vertexdata->_vertexBuffer->getSizePerVertex(), 0);
就不会出提示了
您可以把函数里面的
vertexdata->_vertexBuffer->updateVertices((void*)&meshdata.vertex[0], (int)meshdata.vertex.size() * 4,
0);
替换成:
vertexdata->_vertexBuffer->updateVertices((void*)&meshdata.vertex[0], (int)meshdata.vertex.size() * 4 /
vertexdata->_vertexBuffer->getSizePerVertex(), 0);
就不会出提示了
相关文章推荐
- 正确使用MySQL JDBC setFetchSize() setMaxRows()方法解决JDBC处理大结果集 java.lang.OutOfMemoryError: Java heap space
- SQLServer2005打开表时出现“Object reference not set to an instance of an object. (SQLEditors)”错误的解决办法
- 使用PHP中的库函数file_get_contents时出现Unable to find the wrapper "https"错误解决
- 3154:Sql2005 恢复sql2000 数据库备份时出现的"3154"错误的解决The backup set holds a backup of a database
- Xcode7中使用gitHub管理代码时出现The local repository is out of date错误的解决方法
- VS2010 出现错误提示“Error Creating Control - Object reference not set to an instance of an objec” 的解决方法
- tesseract-ocr 出现 错误 Please make sure the TESSDATA_PREFIX environment variable is set to the parent d irectory of your "tessdata" directory.解决方案
- vs数据库访问出现Object reference not set to an instance of an object. 错误解决办法
- 关于 JDeveloper 出现 unable to create an instance of the java virtual machine 错误的解决办法
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- MAVEN2使用mvn install命令出现java.lang.OutOfMemoryError错误解决办法
- SQL SERVER 2005恢复数据错误解决:The backup set holds a backup of a database other than the existing 'XXX' database
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- SQL SERVER 2005恢复数据错误解决:The backup set holds a backup of a database other than the existing 'XXX' database
- https使用HttpWebRequest出现错误:System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.的解决方法
- Connector/Net 连接 MySQL远程服务器出现 "Unable to connect to any of the specified MySQL hosts" 解决方法
- 当打开Oracle Jdevelopler 11g时出现"Unable to create an instace of the jave virtual Machine Located at path"错时解决办法
- 百思不得其解的"Failed to allocate a managed memory buffer of 268435456 bytes."错误解决
- 使用Lomboz3生成Struts2项目后运行Tomcat出现Unable to load bean错误的解决
- DB2在导入数据时,如果数据量过大,出现事务日志满的错误(Database transaction log is full)该如何解决,commitcount使用