From da0abc31268af8613e08653b266013ac56af2ed0 Mon Sep 17 00:00:00 2001 From: r5 Date: Mon, 18 Sep 2017 04:09:28 +0100 Subject: [PATCH] Try to fix C89 build --- gfx/video_shader_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index 81ea705fb5..3fc081c6c6 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -1080,10 +1080,11 @@ void video_shader_write_conf_cgp(config_file_t *conf, enum rarch_shader_type video_shader_parse_type(const char *path, enum rarch_shader_type fallback) { + enum rarch_shader_type shader_type = RARCH_SHADER_NONE; + if (!path) return fallback; - enum rarch_shader_type shader_type = RARCH_SHADER_NONE; switch (msg_hash_to_file_type( msg_hash_calculate(path_get_extension(path)))) { @@ -1106,7 +1107,6 @@ enum rarch_shader_type video_shader_parse_type(const char *path, enum gfx_ctx_api api = video_context_driver_get_api(); - switch (api) { case GFX_CTX_OPENGL_API: