- 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:
parent
9e109995cd
commit
8abf09afe2
4 changed files with 106 additions and 149 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue