Skip to content

Commit cb4bfe4

Browse files
committed
[build] Fix gcc and clang build.
Signed-off-by: Johannes <[email protected]>
1 parent 466180e commit cb4bfe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/inexor/vulkan-renderer/gltf2/gltf_loader.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ class Model {
8383
const std::uint32_t m_swapchain_image_count;
8484

8585
struct ModelMatrixUBO {
86-
glm::mat4 projection;
87-
glm::mat4 model;
86+
glm::mat4 projection = glm::mat4();
87+
glm::mat4 model = glm::mat4();
8888
glm::vec4 light = glm::vec4(5.0f, 5.0f, -5.0f, 1.0f);
8989
};
9090

91-
const ModelMatrixUBO m_matrices;
91+
const ModelMatrixUBO m_matrices{};
9292

9393
std::vector<wrapper::UniformBuffer> m_uniform_buffers;
9494

0 commit comments

Comments
 (0)