mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
string_is_equal_noncase has issues in video_shader_get_type_from_ext
This commit is contained in:
parent
ae6e410de1
commit
7a7902c4ac
@ -1114,7 +1114,10 @@ enum rarch_shader_type video_shader_get_type_from_ext(
|
||||
|
||||
*is_preset = false;
|
||||
|
||||
if (string_is_equal_noncase(ext, "cg"))
|
||||
if (
|
||||
string_is_equal(ext, "cg") ||
|
||||
string_is_equal(ext, "CG")
|
||||
)
|
||||
{
|
||||
switch (api)
|
||||
{
|
||||
@ -1143,7 +1146,10 @@ enum rarch_shader_type video_shader_get_type_from_ext(
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (string_is_equal_noncase(ext, "cgp"))
|
||||
if (
|
||||
string_is_equal(ext, "cgp") ||
|
||||
string_is_equal(ext, "CGP")
|
||||
)
|
||||
{
|
||||
*is_preset = true;
|
||||
switch (api)
|
||||
@ -1173,7 +1179,10 @@ enum rarch_shader_type video_shader_get_type_from_ext(
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (string_is_equal_noncase(ext, "glsl"))
|
||||
if (
|
||||
string_is_equal(ext, "glsl") ||
|
||||
string_is_equal(ext, "GLSL")
|
||||
)
|
||||
{
|
||||
switch (api)
|
||||
{
|
||||
@ -1184,7 +1193,10 @@ enum rarch_shader_type video_shader_get_type_from_ext(
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (string_is_equal_noncase(ext, "glslp"))
|
||||
if (
|
||||
string_is_equal(ext, "glslp") ||
|
||||
string_is_equal(ext, "GLSLP") ||
|
||||
)
|
||||
{
|
||||
*is_preset = true;
|
||||
switch (api)
|
||||
@ -1196,7 +1208,10 @@ enum rarch_shader_type video_shader_get_type_from_ext(
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (string_is_equal_noncase(ext, "slang"))
|
||||
if (
|
||||
string_is_equal(ext, "slang") ||
|
||||
string_is_equal(ext, "SLANG")
|
||||
)
|
||||
{
|
||||
switch (api)
|
||||
{
|
||||
@ -1209,7 +1224,10 @@ enum rarch_shader_type video_shader_get_type_from_ext(
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (string_is_equal_noncase(ext, "slangp"))
|
||||
if (
|
||||
string_is_equal(ext, "slang") ||
|
||||
string_is_equal(ext, "SLANG")
|
||||
)
|
||||
{
|
||||
*is_preset = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user