- consolidated buffer implementations.

Since this is nearly identical for different buffer types they should share the same code wherever possible.
This commit is contained in:
Christoph Oelckers 2018-10-28 08:58:41 +01:00
commit 8abf09afe2
4 changed files with 106 additions and 149 deletions

View file

@ -126,7 +126,7 @@ void FGLModelRenderer::DrawArrays(int start, int count)
void FGLModelRenderer::DrawElements(int numIndices, size_t offset)
{
di->DrawIndexed(DT_Triangles, state, offset / sizeof(unsigned int), numIndices);
di->DrawIndexed(DT_Triangles, state, int(offset / sizeof(unsigned int)), numIndices);
}
//===========================================================================