Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

vertex_loader: initialize_num_total_attributes.

Lioncash9f536396ad8a
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h
index 3b511945a0..4ed8cd3fd8 100644
--- a/src/video_core/vertex_loader.h
+++ b/src/video_core/vertex_loader.h
@@ -28,7 +28,7 @@ private:
std::array<Regs::VertexAttributeFormat, 16> vertex_attribute_formats;
std::array<u32, 16> vertex_attribute_elements{};
std::array<bool, 16> vertex_attribute_is_default;
- int num_total_attributes;
+ int num_total_attributes = 0;
};
} // namespace Pica