Skip to content

Commit 5a2c1eb

Browse files
committed
fixed crash
1 parent 35c3ef5 commit 5a2c1eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graphics/opengl/actor/Cache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void Cache::UpdateCacheImpl( shader_program::ShaderProgram* shader_program, scen
8383
types::Vec2< size_t > top_left, bottom_right;
8484
actor->GetEffectiveArea( top_left, bottom_right );
8585

86-
const bool need_update = force || top_left != m_top_left || bottom_right != m_bottom_right;
86+
const bool need_update = !m_texture || force || top_left != m_top_left || bottom_right != m_bottom_right;
8787

8888
for ( const auto& it : m_cache_children_by_zindex ) {
8989
for ( const auto& child : it.second ) {
@@ -93,7 +93,7 @@ void Cache::UpdateCacheImpl( shader_program::ShaderProgram* shader_program, scen
9393
}
9494
}
9595

96-
if ( /*!m_texture is it still needed? || */ need_update ) {
96+
if ( need_update ) {
9797

9898
//Log( "Resizing/realigning cache" );
9999

0 commit comments

Comments
 (0)