mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Fix a bug in previous commit.
This commit is contained in:
parent
e34972b110
commit
03ac9649ea
1 changed files with 1 additions and 2 deletions
|
@ -429,14 +429,13 @@ static qboolean RB_SurfaceVao(vao_t *vao, int numVerts, int numIndexes, int firs
|
|||
firstIndexOffset = BUFFER_OFFSET(firstIndex * sizeof(glIndex_t));
|
||||
lastIndexOffset = BUFFER_OFFSET((firstIndex + numIndexes) * sizeof(glIndex_t));
|
||||
|
||||
if (r_mergeMultidraws->integer)
|
||||
if (tess.multiDrawPrimitives && r_mergeMultidraws->integer)
|
||||
{
|
||||
i = 0;
|
||||
|
||||
if (r_mergeMultidraws->integer == 1)
|
||||
{
|
||||
// lazy merge, only check the last primitive
|
||||
// harmless if no multidraw primitives (i = -1 < 0)
|
||||
i = tess.multiDrawPrimitives - 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue