This commit is contained in:
twinaphex 2016-06-20 21:58:19 +02:00
parent 9aa29d9fc5
commit 7ca00fafc0

View File

@ -499,7 +499,6 @@ static void runloop_check_shader_dir(rarch_dir_list_t *dir_list,
{
char msg[128] = {0};
const char *shader = NULL;
const char *ext = NULL;
enum rarch_shader_type type = RARCH_SHADER_NONE;
if (!dir_list || !dir_list->list)
@ -521,9 +520,8 @@ static void runloop_check_shader_dir(rarch_dir_list_t *dir_list,
return;
shader = dir_list->list->elems[dir_list->ptr].data;
ext = path_get_extension(shader);
switch (msg_hash_to_file_type(msg_hash_calculate(ext)))
switch (msg_hash_to_file_type(msg_hash_calculate(path_get_extension(shader))))
{
case FILE_TYPE_SHADER_GLSL:
case FILE_TYPE_SHADER_PRESET_GLSLP: