mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-06 12:45:21 +02:00
ReplacedTexture: Opportunistically delete the waitable
This commit is contained in:
@@ -186,6 +186,8 @@ bool ReplacedTexture::Poll(double budget) {
|
||||
if (threadWaitable_->WaitFor(budget)) {
|
||||
// If we successfully wait here, we're done. The thread will set state accordingly.
|
||||
_assert_(State() == ReplacementState::ACTIVE || State() == ReplacementState::NOT_FOUND || State() == ReplacementState::CANCEL_INIT);
|
||||
delete threadWaitable_;
|
||||
threadWaitable_ = nullptr;
|
||||
return true;
|
||||
}
|
||||
// Still pending on thread.
|
||||
|
||||
Reference in New Issue
Block a user