mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 10:08:20 +00:00
rsx: Zero-initialize the vertex register block
- Some games reference constant regs that they never initialize
This commit is contained in:
parent
00c6a589a5
commit
bbf2a97d2e
@ -587,6 +587,9 @@ namespace rsx
|
||||
*/
|
||||
void thread::fill_vertex_program_constants_data(void *buffer)
|
||||
{
|
||||
//Some games dont initialize some registers that they use in the vertex stage
|
||||
memset(buffer, 0, 512 * 4 * sizeof(float));
|
||||
|
||||
for (const auto &entry : rsx::method_registers.transform_constants)
|
||||
local_transform_constants[entry.first] = entry.second;
|
||||
for (const auto &entry : local_transform_constants)
|
||||
|
Loading…
Reference in New Issue
Block a user