diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/renderer/painter.hpp | 6 | ||||
-rw-r--r-- | src/mbgl/util/thread.hpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/renderer/painter.hpp b/src/mbgl/renderer/painter.hpp index 83d051359b..4a07d651d1 100644 --- a/src/mbgl/renderer/painter.hpp +++ b/src/mbgl/renderer/painter.hpp @@ -161,9 +161,9 @@ private: float depthRangeSize; const float depthEpsilon = 1.0f / (1 << 16); - SpriteAtlas* spriteAtlas; - GlyphAtlas* glyphAtlas; - LineAtlas* lineAtlas; + SpriteAtlas* spriteAtlas = nullptr; + GlyphAtlas* glyphAtlas = nullptr; + LineAtlas* lineAtlas = nullptr; FrameHistory frameHistory; diff --git a/src/mbgl/util/thread.hpp b/src/mbgl/util/thread.hpp index a7a5e73782..d05748a003 100644 --- a/src/mbgl/util/thread.hpp +++ b/src/mbgl/util/thread.hpp @@ -81,8 +81,8 @@ private: std::thread thread; - Object* object; - RunLoop* loop; + Object* object = nullptr; + RunLoop* loop = nullptr; }; template <class Object> |