From e6778e84d971daec82b48aad29921c5c968fd949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20Johan=20T=2E=20S=C3=B8m=C3=A5en?= Date: Sat, 13 Aug 2011 11:53:27 +0200 Subject: [PATCH] GRIM: Use VAOs for Iris --- engines/grim/gfx_opengl.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/engines/grim/gfx_opengl.cpp b/engines/grim/gfx_opengl.cpp index 06a0d8ef896..87be151b492 100644 --- a/engines/grim/gfx_opengl.cpp +++ b/engines/grim/gfx_opengl.cpp @@ -1307,18 +1307,11 @@ void GfxOpenGL::irisAroundRegion(int x1, int y1, int x2, int y2) 0.0f, y1, x1, y1 }; -#ifndef USE_VERTEX_ARRAYS - glBegin(GL_TRIANGLE_STRIP); - for (int i = 0; i < 10; i++) { - glVertex2fv(points + 2 * i); - } - glEnd(); -#else + glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(2, GL_FLOAT, 0, points); glDrawArrays(GL_TRIANGLE_STRIP, 0, 10); glDisableClientState(GL_VERTEX_ARRAY); -#endif glColor3f(1.0f, 1.0f, 1.0f); glEnable(GL_DEPTH_TEST);