diff --git a/src/framework/graphics/framebuffer.h b/src/framework/graphics/framebuffer.h index bbecec8e07..b328901b21 100644 --- a/src/framework/graphics/framebuffer.h +++ b/src/framework/graphics/framebuffer.h @@ -43,7 +43,7 @@ class FrameBuffer bool isValid() const { return m_texture != nullptr; } bool canDraw() const { std::scoped_lock l(m_mutex); - return m_coordsBuffer.getVertexCount() > 0; + return m_texture && m_coordsBuffer.getVertexCount() > 0; } TexturePtr getTexture() const { return m_texture; } Size getSize() const { return m_texture->getSize(); }