GLTexture: Fix undefined behavior when binding textures the first time

This commit is contained in:
Clément Foucault 2020-09-05 18:13:33 +02:00
parent 9764d3e4dc
commit 03b36abbe6
1 changed files with 1 additions and 1 deletions

View File

@ -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);