Skip to content

Commit

Permalink
fix framebuffer draw
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 22, 2023
1 parent 4445e48 commit 526ea9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/framework/graphics/drawpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ void DrawPool::updateHash(const DrawPool::DrawMethod& method, const TexturePtr&
if (m_state.transformMatrix != DEFAULT_MATRIX3)
stdext::hash_union(m_state.hash, m_state.transformMatrix.hash());

if (m_bindedFramebuffers > 0)
stdext::hash_combine(m_state.hash, m_bindedFramebuffers);

if (color != Color::white)
stdext::hash_union(m_state.hash, color.hash());

Expand Down

0 comments on commit 526ea9d

Please sign in to comment.