diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 19:13:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 19:13:33 +0300 |
commit | 03b36abbe6f0b6b5a73e585ece49cd87b11ab190 (patch) | |
tree | 5db377f3ba8b69ac6aebb5bf1a782fe2570f9866 /source/blender | |
parent | 9764d3e4dc10d0fda0bfbdbb68f291ff1af76845 (diff) |
GLTexture: Fix undefined behavior when binding textures the first time
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpu/opengl/gl_texture.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_texture.hh b/source/blender/gpu/opengl/gl_texture.hh index a962bf34c3c..0f241a6f57b 100644 --- a/source/blender/gpu/opengl/gl_texture.hh +++ b/source/blender/gpu/opengl/gl_texture.hh @@ -59,7 +59,7 @@ class GLTexture : public Texture { struct GPUFrameBuffer *framebuffer_ = NULL; /** True if this texture is bound to at least one texture unit. */ /* TODO(fclem) How do we ensure thread safety here? */ - bool is_bound_; + bool is_bound_ = false; public: GLTexture(const char *name); |