[Bf-blender-cvs] [03b36abbe6f] master: GLTexture: Fix undefined behavior when binding textures the first time
Clément Foucault
noreply at git.blender.org
Sat Sep 5 18:13:43 CEST 2020
Commit: 03b36abbe6f0b6b5a73e585ece49cd87b11ab190
Author: Clément Foucault
Date: Sat Sep 5 18:13:33 2020 +0200
Branches: master
https://developer.blender.org/rB03b36abbe6f0b6b5a73e585ece49cd87b11ab190
GLTexture: Fix undefined behavior when binding textures the first time
===================================================================
M source/blender/gpu/opengl/gl_texture.hh
===================================================================
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);
More information about the Bf-blender-cvs
mailing list