From ddcdbce0679652bd16016abcce0a711ba2449d07 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 6 Sep 2018 15:03:01 -0400 Subject: gl_buffer_cache: Default initialize member variables Ensures that the cache always has a deterministic initial state. --- src/video_core/renderer_opengl/gl_buffer_cache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/video_core') diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index 3ae78cb26..6da862902 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -49,9 +49,9 @@ protected: private: OGLStreamBuffer stream_buffer; - u8* buffer_ptr; - GLintptr buffer_offset; - GLintptr buffer_offset_base; + u8* buffer_ptr = nullptr; + GLintptr buffer_offset = 0; + GLintptr buffer_offset_base = 0; }; } // namespace OpenGL -- cgit v1.2.3