mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Add a warning when both Cg and XML shaders are selected.
This commit is contained in:
parent
e5382f8631
commit
988d1b3334
@ -98,4 +98,8 @@ extern struct global g_extern;
|
||||
fprintf(stderr, "SSNES [ERROR] :: " msg, ##args); \
|
||||
} while(0)
|
||||
|
||||
#define SSNES_WARN(msg, args...) do { \
|
||||
fprintf(stderr, "SSNES [WARN] :: " msg, ##args); \
|
||||
} while(0)
|
||||
|
||||
#endif
|
||||
|
3
gfx/gl.c
3
gfx/gl.c
@ -172,6 +172,9 @@ static const input_driver_t input_glfw = {
|
||||
|
||||
static inline bool gl_shader_init(void)
|
||||
{
|
||||
if (strlen(g_settings.video.cg_shader_path) > 0 && strlen(g_settings.video.bsnes_shader_path) > 0)
|
||||
SSNES_WARN("Both Cg and bSNES XML shader are defined in config file. Cg shader will be selected by default.\n");
|
||||
|
||||
#ifdef HAVE_CG
|
||||
if (strlen(g_settings.video.cg_shader_path) > 0)
|
||||
return gl_cg_init(g_settings.video.cg_shader_path);
|
||||
|
Loading…
Reference in New Issue
Block a user