Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-05 19:13:33 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-05 19:13:33 +0300
commit03b36abbe6f0b6b5a73e585ece49cd87b11ab190 (patch)
tree5db377f3ba8b69ac6aebb5bf1a782fe2570f9866 /source
parent9764d3e4dc10d0fda0bfbdbb68f291ff1af76845 (diff)
GLTexture: Fix undefined behavior when binding textures the first time
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/opengl/gl_texture.hh2
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);