Add ifdefs around shader code

This commit is contained in:
twinaphex 2016-04-20 21:23:39 +02:00
parent d1d3bd6e4b
commit 06c1fb2a5c

View File

@ -562,10 +562,12 @@ bool menu_display_ctl(enum menu_display_ctl_state state, void *data)
draw->coords = (struct gfx_coords*)(&ca->coords);
draw->matrix_data = NULL;
#if defined(HAVE_GLSL) || defined(HAVE_CG) || defined(HAVE_HLSL)
shader_info.data = NULL;
shader_info.idx = VIDEO_SHADER_MENU;
video_shader_driver_ctl(SHADER_CTL_USE, &shader_info);
#endif
t += 0.01;