mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Cleanups
This commit is contained in:
parent
aaeff6c888
commit
d48b5b78f8
@ -99,11 +99,6 @@ bool glslang_parse_meta(const struct string_list *lines, glslang_meta *meta)
|
||||
id[0] = '\0';
|
||||
desc[0] = '\0';
|
||||
|
||||
if (!lines)
|
||||
return false;
|
||||
|
||||
*meta = glslang_meta{};
|
||||
|
||||
for (i = 0; i < lines->size; i++)
|
||||
{
|
||||
const char *line = lines->elems[i].data;
|
||||
@ -224,7 +219,7 @@ bool glslang_compile_shader(const char *shader_path, glslang_output *output)
|
||||
|
||||
if (!glslang_read_shader_file(shader_path, lines, true))
|
||||
goto error;
|
||||
|
||||
output->meta = glslang_meta{};
|
||||
if (!glslang_parse_meta(lines, &output->meta))
|
||||
goto error;
|
||||
|
||||
|
@ -102,6 +102,7 @@ bool slang_preprocess_parse_parameters(const char *shader_path,
|
||||
|
||||
if (!glslang_read_shader_file(shader_path, lines, true))
|
||||
goto end;
|
||||
meta = glslang_meta{};
|
||||
if (!glslang_parse_meta(lines, &meta))
|
||||
goto end;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user