From a03a22b8e51aecad0c1335bd66f46fbd6b580669 Mon Sep 17 00:00:00 2001 From: Edgar Date: Mon, 22 Jun 2020 11:23:52 +0200 Subject: [PATCH] Fix uninitialized warning on SBufferContainerInfo --- src/engine/client/backend_sdl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 45d3a1725..c4adfcc2f 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -1489,7 +1489,9 @@ void CCommandProcessorFragment_OpenGL3_3::Cmd_CreateBufferContainer(const CComma { for(int i = m_BufferContainers.size(); i < Index + 1; ++i) { - m_BufferContainers.push_back(SBufferContainer()); + SBufferContainer Container; + Container.m_ContainerInfo.m_Stride = 0; + m_BufferContainers.push_back(Container); } }