From c731a59c47832590fc87a9b535ce5309cb11ffe7 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 25 Dec 2011 20:58:15 +0100 Subject: menu: use 2d coordinates for opengl --- src/menu/software_mouse_pointer.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/menu/software_mouse_pointer.cpp') diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp index 90171fa9..18de8de3 100644 --- a/src/menu/software_mouse_pointer.cpp +++ b/src/menu/software_mouse_pointer.cpp @@ -35,16 +35,12 @@ namespace usdx { this->vertices[0] = 0.0f; this->vertices[1] = 40.0f; - this->vertices[2] = 0.0f; + this->vertices[2] = 40.0f; this->vertices[3] = 40.0f; this->vertices[4] = 40.0f; this->vertices[5] = 0.0f; - this->vertices[6] = 40.0f; + this->vertices[6] = 0.0f; this->vertices[7] = 0.0f; - this->vertices[8] = 0.0f; - this->vertices[9] = 0.0f; - this->vertices[10] = 0.0f; - this->vertices[11] = 0.0f; this->color[0] = 255; this->color[1] = 255; @@ -105,7 +101,7 @@ namespace usdx glEnableClientState(GL_TEXTURE_COORD_ARRAY); glEnableClientState(GL_COLOR_ARRAY); - glVertexPointer(3, GL_FLOAT, 0, vertices); + glVertexPointer(2, GL_FLOAT, 0, vertices); glColorPointer(4, GL_UNSIGNED_BYTE, 0, color); glTexCoordPointer(2, GL_FLOAT, 0, texture); -- cgit v1.2.3