mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-28 11:03:49 +00:00
Fixes the drawUtil rendering of polyhedrons by correcting the index ordering to work with triangleStrip as opposed to Fan.
This commit is contained in:
parent
65f51a89d8
commit
8a7159c00e
2 changed files with 12 additions and 2 deletions
|
|
@ -1015,7 +1015,7 @@ void GFXDrawUtil::_drawSolidPolyhedron( const GFXStateBlockDesc &desc, const Any
|
|||
|
||||
// Allocate a temp buffer for the face indices.
|
||||
|
||||
const U32 numIndices = poly.getNumEdges() * 2;
|
||||
const U32 numIndices = poly.getNumEdges() * 3;
|
||||
const U32 numPlanes = poly.getNumPlanes();
|
||||
|
||||
GFXPrimitiveBufferHandle prims( mDevice, numIndices, 0, GFXBufferTypeVolatile );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue