mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-01 18:47:02 +00:00
ReplacedTexture: Opportunistically delete the waitable
This commit is contained in:
parent
6a644eda73
commit
b372513ba4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user