GLTexture: Fix undefined behavior when binding textures the first time
This commit is contained in:
parent
9764d3e4dc
commit
03b36abbe6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue