Skip to content
Snippets Groups Projects
Commit f8a11a66 authored by Jannik Vogel's avatar Jannik Vogel
Browse files

OpenGL: value-initialize variables which cause uninitialised access otherwise

parent 18b517e2
No related branches found
No related tags found
No related merge requests found
......@@ -413,7 +413,7 @@ private:
UniformData data;
bool lut_dirty[6];
bool dirty;
} uniform_block_data;
} uniform_block_data = {};
std::array<SamplerInfo, 3> texture_samplers;
OGLVertexArray vertex_array;
......@@ -422,5 +422,5 @@ private:
OGLFramebuffer framebuffer;
std::array<OGLTexture, 6> lighting_luts;
std::array<std::array<GLvec4, 256>, 6> lighting_lut_data;
std::array<std::array<GLvec4, 256>, 6> lighting_lut_data{};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment