mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 10:20:21 +00:00
Don't need gl->shader->use calls anymore
This commit is contained in:
parent
e9ba2caac7
commit
0d6ea9c0ff
@ -919,8 +919,6 @@ static void glui_frame(void)
|
||||
glui_draw_cursor(gl, glui, &white_bg[0], mouse_x, mouse_y, width, height);
|
||||
}
|
||||
|
||||
gl->shader->use(gl, GL_SHADER_STOCK_BLEND);
|
||||
|
||||
menu_display_ctl(MENU_DISPLAY_CTL_UNSET_VIEWPORT, NULL);
|
||||
}
|
||||
|
||||
|
@ -577,8 +577,7 @@ void menu_display_frame_background(
|
||||
coords.lut_tex_coord = tex_coord;
|
||||
coords.color = (const float*)coord_color;
|
||||
|
||||
if (gl->shader && gl->shader->use)
|
||||
gl->shader->use(gl, GL_SHADER_STOCK_BLEND);
|
||||
menu_display_blend_begin(gl);
|
||||
|
||||
menu_display_ctl(MENU_DISPLAY_CTL_SET_VIEWPORT, NULL);
|
||||
|
||||
@ -587,8 +586,6 @@ void menu_display_frame_background(
|
||||
&& !force_transparency
|
||||
&& texture)
|
||||
coords.color = (const float*)coord_color2;
|
||||
|
||||
menu_display_blend_begin(gl);
|
||||
|
||||
menu_display_draw_frame(0, 0, width, height,
|
||||
gl->shader, &coords,
|
||||
|
Loading…
Reference in New Issue
Block a user