mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
Fix bug in shader_glsl.c
This commit is contained in:
parent
284e6b2994
commit
d77da6b53d
@ -758,15 +758,7 @@ static void *gl_glsl_init(void *data, const char *path)
|
|||||||
bool ret = false;
|
bool ret = false;
|
||||||
const char *path_ext = path_get_extension(path);
|
const char *path_ext = path_get_extension(path);
|
||||||
|
|
||||||
if (memcmp(path_ext, "glsl", 4) == 0)
|
if (memcmp(path_ext, "glslp", 5) == 0)
|
||||||
{
|
|
||||||
strlcpy(glsl->shader->pass[0].source.path, path,
|
|
||||||
sizeof(glsl->shader->pass[0].source.path));
|
|
||||||
glsl->shader->passes = 1;
|
|
||||||
glsl->shader->modern = true;
|
|
||||||
ret = true;
|
|
||||||
}
|
|
||||||
else if (memcmp(path_ext, "glslp", 5) == 0)
|
|
||||||
{
|
{
|
||||||
conf = config_file_new(path);
|
conf = config_file_new(path);
|
||||||
if (conf)
|
if (conf)
|
||||||
@ -775,6 +767,14 @@ static void *gl_glsl_init(void *data, const char *path)
|
|||||||
glsl->shader->modern = true;
|
glsl->shader->modern = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (memcmp(path_ext, "glsl", 4) == 0)
|
||||||
|
{
|
||||||
|
strlcpy(glsl->shader->pass[0].source.path, path,
|
||||||
|
sizeof(glsl->shader->pass[0].source.path));
|
||||||
|
glsl->shader->passes = 1;
|
||||||
|
glsl->shader->modern = true;
|
||||||
|
ret = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user