mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 04:03:46 +00:00
Fix AMD render problem with missed meshes.
This commit is contained in:
parent
e0436efc21
commit
d97bccb798
1 changed files with 2 additions and 2 deletions
|
|
@ -2428,7 +2428,7 @@ void TSMesh::_createVBIB( TSVertexBufferHandle &vb, GFXPrimitiveBufferHandle &pb
|
|||
pInfo.startIndex = draw.start;
|
||||
// Use the first index to determine which 16-bit address space we are operating in
|
||||
pInfo.startVertex = indices[draw.start] & 0xFFFF0000;
|
||||
pInfo.minIndex = pInfo.startVertex;
|
||||
pInfo.minIndex = 0; // minIndex are zero based index relative to startVertex. See @GFXDevice
|
||||
pInfo.numVertices = getMin((U32)0x10000, mNumVerts - pInfo.startVertex);
|
||||
break;
|
||||
|
||||
|
|
@ -2439,7 +2439,7 @@ void TSMesh::_createVBIB( TSVertexBufferHandle &vb, GFXPrimitiveBufferHandle &pb
|
|||
pInfo.startIndex = draw.start;
|
||||
// Use the first index to determine which 16-bit address space we are operating in
|
||||
pInfo.startVertex = indices[draw.start] & 0xFFFF0000;
|
||||
pInfo.minIndex = pInfo.startVertex;
|
||||
pInfo.minIndex = 0; // minIndex are zero based index relative to startVertex. See @GFXDevice
|
||||
pInfo.numVertices = getMin((U32)0x10000, mNumVerts - pInfo.startVertex);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue