mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
Do not make an extra submit callback during SurfaceFrame destruction if the frame was already submitted (#5669)
This commit is contained in:
@@ -21,7 +21,7 @@ SurfaceFrame::SurfaceFrame(sk_sp<SkSurface> surface,
|
||||
}
|
||||
|
||||
SurfaceFrame::~SurfaceFrame() {
|
||||
if (submit_callback_) {
|
||||
if (submit_callback_ && !submitted_) {
|
||||
// Dropping without a Submit.
|
||||
submit_callback_(*this, nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user