mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Removed old fixed function code from GFX.
This commit is contained in:
parent
58d2e30af7
commit
5a933c00d3
53 changed files with 98 additions and 1646 deletions
|
|
@ -199,9 +199,9 @@ void end( bool useGenericShaders )
|
|||
|
||||
if ( stripStart > 0 )
|
||||
{
|
||||
// TODO: Fix this to allow > MAX_DYNAMIC_VERTS!
|
||||
// TODO: Fix this to allow > GFX_MAX_DYNAMIC_VERTS!
|
||||
|
||||
U32 copyVerts = getMin( (U32)MAX_DYNAMIC_VERTS, numVerts );
|
||||
U32 copyVerts = getMin( (U32)GFX_MAX_DYNAMIC_VERTS, numVerts );
|
||||
mVertBuff.set( GFX, copyVerts, GFXBufferTypeVolatile );
|
||||
|
||||
GFXVertexPCT *verts = mVertBuff.lock();
|
||||
|
|
@ -216,7 +216,7 @@ void end( bool useGenericShaders )
|
|||
{
|
||||
while ( numVerts > 0 )
|
||||
{
|
||||
U32 copyVerts = getMin( (U32)MAX_DYNAMIC_VERTS, numVerts );
|
||||
U32 copyVerts = getMin( (U32)GFX_MAX_DYNAMIC_VERTS, numVerts );
|
||||
copyVerts -= copyVerts % vertStride;
|
||||
|
||||
mVertBuff.set( GFX, copyVerts, GFXBufferTypeVolatile );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue