Use cb_shader_use

This commit is contained in:
twinaphex 2017-05-19 19:42:34 +02:00
parent 452c02653e
commit 64fdadf60f
1 changed files with 1 additions and 6 deletions

View File

@ -1003,7 +1003,6 @@ static INLINE void gl_draw_texture(gl_t *gl, video_frame_info_t *video_info)
{ {
video_shader_ctx_mvp_t mvp; video_shader_ctx_mvp_t mvp;
video_shader_ctx_coords_t coords; video_shader_ctx_coords_t coords;
video_shader_ctx_info_t shader_info;
GLfloat color[16]; GLfloat color[16];
unsigned width = video_info->width; unsigned width = video_info->width;
unsigned height = video_info->height; unsigned height = video_info->height;
@ -1033,11 +1032,7 @@ static INLINE void gl_draw_texture(gl_t *gl, video_frame_info_t *video_info)
gl->coords.color = color; gl->coords.color = color;
glBindTexture(GL_TEXTURE_2D, gl->menu_texture); glBindTexture(GL_TEXTURE_2D, gl->menu_texture);
shader_info.data = gl; video_info->cb_shader_use(gl, video_info->shader_data, VIDEO_SHADER_STOCK_BLEND, true);
shader_info.idx = VIDEO_SHADER_STOCK_BLEND;
shader_info.set_active = true;
video_shader_driver_use(shader_info);
gl->coords.vertices = 4; gl->coords.vertices = 4;