mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-25 06:25:33 +00:00
OpenGL: value-initialize variables which cause uninitialised access otherwise
This commit is contained in:
parent
18b517e236
commit
f8a11a664f
|
@ -413,7 +413,7 @@ private:
|
||||||
UniformData data;
|
UniformData data;
|
||||||
bool lut_dirty[6];
|
bool lut_dirty[6];
|
||||||
bool dirty;
|
bool dirty;
|
||||||
} uniform_block_data;
|
} uniform_block_data = {};
|
||||||
|
|
||||||
std::array<SamplerInfo, 3> texture_samplers;
|
std::array<SamplerInfo, 3> texture_samplers;
|
||||||
OGLVertexArray vertex_array;
|
OGLVertexArray vertex_array;
|
||||||
|
@ -422,5 +422,5 @@ private:
|
||||||
OGLFramebuffer framebuffer;
|
OGLFramebuffer framebuffer;
|
||||||
|
|
||||||
std::array<OGLTexture, 6> lighting_luts;
|
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{};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue