diff options
| author | 2016-05-14 10:16:06 +0200 | |
|---|---|---|
| committer | 2016-05-14 10:16:11 +0200 | |
| commit | f8a11a664f579b413d11590408c2272ef332b23b (patch) | |
| tree | 77b694c2b634fbca08bf6c7371d4d6a6be2b5641 /src | |
| parent | Merge pull request #1689 from Subv/shmem (diff) | |
| download | yuzu-f8a11a664f579b413d11590408c2272ef332b23b.tar.gz yuzu-f8a11a664f579b413d11590408c2272ef332b23b.tar.xz yuzu-f8a11a664f579b413d11590408c2272ef332b23b.zip | |
OpenGL: value-initialize variables which cause uninitialised access otherwise
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index eed00011a..f1b4fbed8 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h | |||
| @@ -413,7 +413,7 @@ private: | |||
| 413 | UniformData data; | 413 | UniformData data; |
| 414 | bool lut_dirty[6]; | 414 | bool lut_dirty[6]; |
| 415 | bool dirty; | 415 | bool dirty; |
| 416 | } uniform_block_data; | 416 | } uniform_block_data = {}; |
| 417 | 417 | ||
| 418 | std::array<SamplerInfo, 3> texture_samplers; | 418 | std::array<SamplerInfo, 3> texture_samplers; |
| 419 | OGLVertexArray vertex_array; | 419 | OGLVertexArray vertex_array; |
| @@ -422,5 +422,5 @@ private: | |||
| 422 | OGLFramebuffer framebuffer; | 422 | OGLFramebuffer framebuffer; |
| 423 | 423 | ||
| 424 | std::array<OGLTexture, 6> lighting_luts; | 424 | std::array<OGLTexture, 6> lighting_luts; |
| 425 | std::array<std::array<GLvec4, 256>, 6> lighting_lut_data; | 425 | std::array<std::array<GLvec4, 256>, 6> lighting_lut_data{}; |
| 426 | }; | 426 | }; |