mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
rsx: Handle vertex shaders with no constant references
- If no vc[] refs exist, do not upload anything!
This commit is contained in:
parent
d057ffe80f
commit
de0e660d28
4 changed files with 24 additions and 25 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue