Parcourir la source

vertex_loader: initialize_num_total_attributes.

Keeps the public API sane.
Lioncash il y a 10 ans
Parent
commit
769f4a7018
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/video_core/vertex_loader.h

+ 1 - 1
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