[solved]using glDrawElementsBaseVertex

Started by
-1 comments, last by bshiro 14 years ago
I tried using this function so i can use just one big vertex array. however it keeps crashing. this code runs well: glDrawElements(GL_TRIANGLES, count[0], GL_UNSIGNED_SHORT, indices[0]); but when i try this: glDrawElementsBaseVertex(GL_TRIANGLES, count[0], GL_UNSIGNED_SHORT, indices[0], 0); i get this:
Quote: Unhandled exception at 0x00000000 in viewer.exe: 0xC0000005: Access violation reading location 0x00000000.
does anyone have an idea what's wrong? EDIT: i installed opengl 3.2. its running now. [Edited by - bshiro on March 17, 2010 1:47:02 PM]

This topic is closed to new replies.

Advertisement