Don't need gl->shader->use calls anymore

This commit is contained in:
twinaphex 2015-11-01 19:35:32 +01:00
parent e9ba2caac7
commit 0d6ea9c0ff
2 changed files with 1 additions and 6 deletions

View File

@ -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);
}

View File

@ -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,