diff --git a/tests/RHI/OpenGL/test_command_list.cpp b/tests/RHI/OpenGL/test_command_list.cpp index a310ff7f..97c99b14 100644 --- a/tests/RHI/OpenGL/test_command_list.cpp +++ b/tests/RHI/OpenGL/test_command_list.cpp @@ -150,7 +150,7 @@ TEST_F(OpenGLTestFixture, CommandList_SetPrimitiveTopology) { TEST_F(OpenGLTestFixture, CommandList_SetDepthStencilState) { OpenGLCommandList cmdList; - DepthStencilState state; + DepthStencilState state = {}; state.depthEnable = true; state.depthWriteMask = true; state.depthFunc = ComparisonFunc::Less; @@ -165,7 +165,7 @@ TEST_F(OpenGLTestFixture, CommandList_SetDepthStencilState) { TEST_F(OpenGLTestFixture, CommandList_SetBlendState) { OpenGLCommandList cmdList; - BlendState state; + BlendState state = {}; state.renderTargets[0].blendEnable = true; state.renderTargets[0].srcBlend = BlendFactor::SrcAlpha; state.renderTargets[0].dstBlend = BlendFactor::InvSrcAlpha;