From 18ad2595cf7f4bb45d5be0ebb3d7be4ac7471d92 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Apr 2020 12:36:40 -0400 Subject: [PATCH] CCameraFilter: Always initialize m_shape Provides a deterministic initial state and prevents any potential uninitialized reads. --- Runtime/Camera/CCameraFilter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Camera/CCameraFilter.hpp b/Runtime/Camera/CCameraFilter.hpp index 027bf2466..a059a969a 100644 --- a/Runtime/Camera/CCameraFilter.hpp +++ b/Runtime/Camera/CCameraFilter.hpp @@ -73,7 +73,7 @@ public: }; class CCameraFilterPassPoly { - EFilterShape m_shape; + EFilterShape m_shape{}; std::unique_ptr m_filter; public: