mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(GLUI) Cleanup
This commit is contained in:
parent
6516fc783b
commit
b1c66c5dec
@ -242,9 +242,14 @@ static void glui_render_quad(gl_t *gl, int x, int y, int w, int h,
|
|||||||
GRfloat *coord_color)
|
GRfloat *coord_color)
|
||||||
{
|
{
|
||||||
struct gfx_coords coords;
|
struct gfx_coords coords;
|
||||||
|
math_matrix_4x4 mymat, mrot;
|
||||||
|
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
glui_handle_t *glui = (glui_handle_t*)menu->userdata;
|
glui_handle_t *glui = (glui_handle_t*)menu->userdata;
|
||||||
|
|
||||||
|
matrix_4x4_rotate_z(&mrot, 0);
|
||||||
|
matrix_4x4_multiply(&mymat, &mrot, &gl->mvp_no_rot);
|
||||||
|
|
||||||
coords.vertices = 4;
|
coords.vertices = 4;
|
||||||
coords.vertex = glui_vertexes;
|
coords.vertex = glui_vertexes;
|
||||||
coords.tex_coord = glui_tex_coords;
|
coords.tex_coord = glui_tex_coords;
|
||||||
@ -258,8 +263,7 @@ static void glui_render_quad(gl_t *gl, int x, int y, int w, int h,
|
|||||||
height - y - h,
|
height - y - h,
|
||||||
w,
|
w,
|
||||||
h,
|
h,
|
||||||
&coords,
|
&coords, &mymat, glui->textures.white, 4,
|
||||||
&gl->mvp_no_rot, glui->textures.white, 4,
|
|
||||||
MENU_DISPLAY_PRIM_TRIANGLESTRIP );
|
MENU_DISPLAY_PRIM_TRIANGLESTRIP );
|
||||||
|
|
||||||
gl->coords.color = gl->white_color_ptr;
|
gl->coords.color = gl->white_color_ptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user