Upgraded to VS2015 64-bit compiler

This commit is contained in:
Aruki
2017-02-04 09:36:37 -07:00
parent 7f9bed653b
commit fbdf9023d1
81 changed files with 65 additions and 55 deletions

View File

@@ -75,7 +75,7 @@ void CIndexBuffer::DrawElements()
void CIndexBuffer::DrawElements(u32 Offset, u32 Size)
{
Bind();
glDrawElements(mPrimitiveType, Size, GL_UNSIGNED_SHORT, (void*) (Offset * 2));
glDrawElements(mPrimitiveType, Size, GL_UNSIGNED_SHORT, (char*)0 + (Offset * 2));
Unbind();
}