mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 09:20:59 +00:00
- process lines through the 2D drawer.
This commit is contained in:
parent
2f8d472d7d
commit
1890df98f9
9 changed files with 36 additions and 177 deletions
|
@ -259,10 +259,14 @@ void GLInstance::Draw(EDrawType type, size_t start, size_t count)
|
|||
}
|
||||
glEnd();
|
||||
}
|
||||
else
|
||||
else if (type != DT_LINES)
|
||||
{
|
||||
glDrawElements(primtypes[type], count, GL_UNSIGNED_INT, (void*)(intptr_t)(start * sizeof(uint32_t)));
|
||||
}
|
||||
else
|
||||
{
|
||||
glDrawArrays(primtypes[type], start, count);
|
||||
}
|
||||
if (MatrixChange) RestoreTextureProps();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue