rsx: Handle vertex shaders with no constant references

- If no vc[] refs exist, do not upload anything!
This commit is contained in:
kd-11 2022-03-24 01:23:20 +03:00 committed by kd-11
parent d057ffe80f
commit de0e660d28
4 changed files with 24 additions and 25 deletions

View file

@ -276,11 +276,8 @@ void GLVertexProgram::Decompile(const RSXVertexProgram& prog)
GLVertexDecompilerThread decompiler(prog, source, parr);
decompiler.Task();
if (has_indexed_constants = decompiler.properties.has_indexed_constants;
!has_indexed_constants)
{
constant_ids = std::vector<u16>(decompiler.m_constant_ids.begin(), decompiler.m_constant_ids.end());
}
has_indexed_constants = decompiler.properties.has_indexed_constants;
constant_ids = std::vector<u16>(decompiler.m_constant_ids.begin(), decompiler.m_constant_ids.end());
shader.create(::glsl::program_domain::glsl_vertex_program, source);
id = shader.id();