- process lines through the 2D drawer.

This commit is contained in:
Christoph Oelckers 2019-12-31 19:02:55 +01:00
parent 2f8d472d7d
commit 1890df98f9
9 changed files with 36 additions and 177 deletions

View file

@ -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();
}