mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #1025 from bpay/fix-amd-mesh-render
Fix AMD render problem with missed meshes.
This commit is contained in:
commit
e58beba4a5
1 changed files with 2 additions and 2 deletions
|
|
@ -2428,7 +2428,7 @@ void TSMesh::_createVBIB( TSVertexBufferHandle &vb, GFXPrimitiveBufferHandle &pb
|
||||||
pInfo.startIndex = draw.start;
|
pInfo.startIndex = draw.start;
|
||||||
// Use the first index to determine which 16-bit address space we are operating in
|
// Use the first index to determine which 16-bit address space we are operating in
|
||||||
pInfo.startVertex = indices[draw.start] & 0xFFFF0000;
|
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);
|
pInfo.numVertices = getMin((U32)0x10000, mNumVerts - pInfo.startVertex);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -2439,7 +2439,7 @@ void TSMesh::_createVBIB( TSVertexBufferHandle &vb, GFXPrimitiveBufferHandle &pb
|
||||||
pInfo.startIndex = draw.start;
|
pInfo.startIndex = draw.start;
|
||||||
// Use the first index to determine which 16-bit address space we are operating in
|
// Use the first index to determine which 16-bit address space we are operating in
|
||||||
pInfo.startVertex = indices[draw.start] & 0xFFFF0000;
|
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);
|
pInfo.numVertices = getMin((U32)0x10000, mNumVerts - pInfo.startVertex);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue