VERY experimental Nintendo Switch 2 emulator
C++
OpenGL: value-initialize variables which cause uninitialised access otherwise
Jannik Vogeldc25f5001788
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.hindex eed00011a4..f1b4fbed80 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.h+++ b/src/video_core/renderer_opengl/gl_rasterizer.h@@ -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{};};