diff --git a/code/graphics/gropengltnl.cpp b/code/graphics/gropengltnl.cpp
index cc93dca..622d2c3 100644
--- a/code/graphics/gropengltnl.cpp
+++ b/code/graphics/gropengltnl.cpp
@@ -496,7 +496,7 @@ static void opengl_init_arrays(opengl_vertex_buffer *vbp, const vertex_buffer *b
 }
 
 #define DO_RENDER()	\
-	vglDrawRangeElements(GL_TRIANGLES, start, end, count, element_type, ibuffer + (datap->index_offset + start))
+	glDrawElements(GL_TRIANGLES, count, element_type, ibuffer + (datap->index_offset + start))
 
 int GL_last_shader_flags = -1;
 int GL_last_shader_index = -1;
