Skip to content

Commit e3ef7ce

Browse files
committed
Add null check for texture_image_
1 parent 35e36be commit e3ef7ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

engine/src/flutter/shell/platform/embedder/embedder_external_texture_gl.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ bool EmbedderExternalTextureGL::IsExternalTextureChanged(
136136
return true;
137137
}
138138

139+
if (!texture_image_) {
140+
return true;
141+
}
142+
139143
auto handle = texture_image_->GetGLHandle();
140144
if (!handle.has_value()) {
141145
return true;

0 commit comments

Comments
 (0)