(XMB) Uniquely name global vertex and tex_coord

This commit is contained in:
twinaphex 2014-10-09 04:51:42 +02:00
parent 84a35d4176
commit 438fcccbbf

View File

@ -122,14 +122,14 @@ typedef struct xmb_handle
static xmb_handle_t *xmb_menu_data; static xmb_handle_t *xmb_menu_data;
static const GLfloat vertex[] = { static const GLfloat rmb_vertex[] = {
0, 0, 0, 0,
1, 0, 1, 0,
0, 1, 0, 1,
1, 1, 1, 1,
}; };
static const GLfloat tex_coord[] = { static const GLfloat rmb_tex_coord[] = {
0, 1, 0, 1,
1, 1, 1, 1,
0, 0, 0, 0,
@ -173,9 +173,9 @@ static void xmb_draw_icon(GLuint texture, float x, float y,
glViewport(x, gl->win_height - y, xmb->xmb_icon_size, xmb->xmb_icon_size); glViewport(x, gl->win_height - y, xmb->xmb_icon_size, xmb->xmb_icon_size);
coords.vertices = 4; coords.vertices = 4;
coords.vertex = vertex; coords.vertex = rmb_vertex;
coords.tex_coord = tex_coord; coords.tex_coord = rmb_tex_coord;
coords.lut_tex_coord = tex_coord; coords.lut_tex_coord = rmb_tex_coord;
coords.color = color; coords.color = color;
glBindTexture(GL_TEXTURE_2D, texture); glBindTexture(GL_TEXTURE_2D, texture);