Try to fix C89 build

This commit is contained in:
r5 2017-09-18 04:09:28 +01:00
parent 4a9325d01d
commit da0abc3126

View File

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