-
Bug
-
Resolution: Fixed
-
P2
-
8
Selecting debug version of Direct3D 9 in control panel results in DrawIndexedPrimitive fail with D3DERR_INVALIDCALL in D3DMeshView::render()
BaseMesh.buildGeometry pass vertex buffer size in floats to the buildNativeGeometry method as nNewVerts * VERTEX_SIZE.
D3DMesh::buildBuffers then assign it to the numVertices member variable as is.
It then used as NumVertices parameter in DrawIndexedPrimitive which expects the actual number of vertices, not the vertex buffer size in floats or in bytes.
Debug runtime detects it and the call fails.
BaseMesh.buildGeometry pass vertex buffer size in floats to the buildNativeGeometry method as nNewVerts * VERTEX_SIZE.
D3DMesh::buildBuffers then assign it to the numVertices member variable as is.
It then used as NumVertices parameter in DrawIndexedPrimitive which expects the actual number of vertices, not the vertex buffer size in floats or in bytes.
Debug runtime detects it and the call fails.