Silence more warnings

This commit is contained in:
twinaphex 2020-06-29 20:17:54 +02:00
parent 55d9456cbb
commit cf1eb2e989

View File

@ -225,6 +225,7 @@ static bool slang_process_reflection(
uniform.offset = 0;
uniform.id[0] = '\0';
if (!string_is_empty(uniform_id))
strlcpy(uniform.id, uniform_id, sizeof(uniform.id));
if (src.push_constant)
@ -528,7 +529,9 @@ bool slang_process(
break;
}
if (vs_compiler)
vs_resources = vs_compiler->get_shader_resources();
if (ps_compiler)
ps_resources = ps_compiler->get_shader_resources();
if (!vs_resources.uniform_buffers.empty())