mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 19:00:57 +00:00
GRIM: Add VAO-rendering to irisAround.
This commit is contained in:
parent
e529a0b4c5
commit
6c5a960298
@ -1304,12 +1304,18 @@ void GfxOpenGL::irisAroundRegion(int x, int y)
|
||||
0.0f, y,
|
||||
x, y
|
||||
};
|
||||
|
||||
#ifndef USE_VERTEX_ARRAYS
|
||||
glBegin(GL_TRIANGLE_STRIP);
|
||||
for (int i = 0 ;i < 13; i++) {
|
||||
glVertex2fv(points+2*i);
|
||||
}
|
||||
glEnd();
|
||||
#else
|
||||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
glVertexPointer(2, GL_FLOAT, 0, points);
|
||||
glDrawArrays(GL_TRIANGLE_STRIP, 0, 14);
|
||||
glDisableClientState(GL_VERTEX_ARRAY);
|
||||
#endif
|
||||
|
||||
glColor3f(1.0f,1.0f,1.0f);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
Loading…
Reference in New Issue
Block a user