Skip to content

Commit

Permalink
Update framebuffer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 25, 2023
1 parent 4489125 commit 6b6e562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/graphics/framebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit 6b6e562

Please sign in to comment.