From a635e24fc258b94bf1f0311054d54a955e9a5034 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 8 Jan 2025 14:26:19 +0300 Subject: [PATCH] rsx: Default initialize vertex program fields - Fixes a crash when RSXVertexProgram is default-initialized. This probably also fixes a whole class of crashes that occur when shader interpreter is in use since that pipeline uses a default-initialized stub. --- rpcs3/Emu/RSX/Program/RSXVertexProgram.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/Program/RSXVertexProgram.h b/rpcs3/Emu/RSX/Program/RSXVertexProgram.h index 6a25906e35..1277250b56 100644 --- a/rpcs3/Emu/RSX/Program/RSXVertexProgram.h +++ b/rpcs3/Emu/RSX/Program/RSXVertexProgram.h @@ -223,10 +223,10 @@ struct RSXVertexProgram { std::vector data; rsx::vertex_program_texture_state texture_state; - u32 ctrl; - u32 output_mask; - u32 base_address; - u32 entry; + u32 ctrl = 0; + u32 output_mask = 0; + u32 base_address = 0; + u32 entry = 0; std::bitset instruction_mask; std::set jump_table;