diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-11-05 19:59:07 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-11-05 20:00:27 +0300 |
commit | c3e832144b0d22e3da883330212247808a9db2cf (patch) | |
tree | 4d0a88187bd5dd3f2c7708654453b0f5a7dc6d31 /source/blender/gpu/intern/gpu_framebuffer_private.hh | |
parent | aae60f0fecf74c93d8c6e8a5e33ffd4fb6c76a3a (diff) |
GPU: Fix valgrind warnings about branching on uninitialized variables
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer_private.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer_private.hh b/source/blender/gpu/intern/gpu_framebuffer_private.hh index 87f0f3823e6..7afa56bfe3d 100644 --- a/source/blender/gpu/intern/gpu_framebuffer_private.hh +++ b/source/blender/gpu/intern/gpu_framebuffer_private.hh @@ -100,10 +100,10 @@ class FrameBuffer { /** Debug name. */ char name_[DEBUG_NAME_LEN]; /** Frame-buffer state. */ - int viewport_[4]; - int scissor_[4]; + int viewport_[4] = {0}; + int scissor_[4] = {0}; bool scissor_test_ = false; - bool dirty_state_; + bool dirty_state_ = true; public: FrameBuffer(const char *name); |