mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 14:04:21 +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;
|
||||
const char *path_ext = path_get_extension(path);
|
||||
|
||||
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;
|
||||
}
|
||||
else if (memcmp(path_ext, "glslp", 5) == 0)
|
||||
if (memcmp(path_ext, "glslp", 5) == 0)
|
||||
{
|
||||
conf = config_file_new(path);
|
||||
if (conf)
|
||||
@ -775,6 +767,14 @@ static void *gl_glsl_init(void *data, const char *path)
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user