From eedceb8534bcac680a7261d57110f24322bd5b87 Mon Sep 17 00:00:00 2001 From: Conrad Kramer Date: Fri, 21 Jun 2013 16:54:11 -0400 Subject: [PATCH] Fixed texture coordinates --- MAMEGameCore.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAMEGameCore.mm b/MAMEGameCore.mm index 1f5f6b2..8f8fbee 100644 --- a/MAMEGameCore.mm +++ b/MAMEGameCore.mm @@ -388,7 +388,7 @@ static INT32 joystick_get_state(void *device_internal, void *item_internal) { GLfloat vertices[] = { prim->bounds.x0, prim->bounds.y1, prim->bounds.x0, prim->bounds.y0, prim->bounds.x1, prim->bounds.y1, prim->bounds.x1, prim->bounds.y0 }; glVertexPointer(2, GL_FLOAT, 0, vertices); GLfloat texCoords[] = { width * prim->texcoords.bl.u, height * prim->texcoords.bl.v, width * prim->texcoords.tl.u, height * prim->texcoords.tl.v, width * prim->texcoords.br.u, height * prim->texcoords.br.v, width * prim->texcoords.tr.u, height * prim->texcoords.tr.v }; - glTexCoordPointer(2, GL_FLOAT, 0, vertices); + glTexCoordPointer(2, GL_FLOAT, 0, texCoords); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); glDisable(target);