From c0b0fd714ed3c805a72d8f81b9b1ff1fbb51c872 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Mon, 6 May 2013 18:01:44 -0700 Subject: Misc fixes to IBO code to correctly use sizeof(glIndex_t) --- src/renderergl2/tr_sky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderergl2/tr_sky.c') diff --git a/src/renderergl2/tr_sky.c b/src/renderergl2/tr_sky.c index 624ab364..d8fcf506 100644 --- a/src/renderergl2/tr_sky.c +++ b/src/renderergl2/tr_sky.c @@ -469,7 +469,7 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max R_DrawElementsVBO(tess.numIndexes - tess.firstIndex, tess.firstIndex, tess.minIndex, tess.maxIndex); - //qglDrawElements(GL_TRIANGLES, tess.numIndexes - tess.firstIndex, GL_INDEX_TYPE, BUFFER_OFFSET(tess.firstIndex * sizeof(GL_INDEX_TYPE))); + //qglDrawElements(GL_TRIANGLES, tess.numIndexes - tess.firstIndex, GL_INDEX_TYPE, BUFFER_OFFSET(tess.firstIndex * sizeof(glIndex_t))); //R_BindNullVBO(); //R_BindNullIBO(); -- cgit