mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
SoftGPU: Fix refactoring mistake where we could return an uninitialized value. Oops.
This commit is contained in:
parent
9625eaf29a
commit
c2bf09744a
1 changed files with 3 additions and 1 deletions
|
@ -889,8 +889,10 @@ SingleFunc PixelJitCache::GetSingle(const PixelFuncID &id, BinManager *binner) {
|
||||||
|
|
||||||
if (cache_.Get(key, &singleFunc)) {
|
if (cache_.Get(key, &singleFunc)) {
|
||||||
lastSingle_.Set(key, singleFunc, clearGen_);
|
lastSingle_.Set(key, singleFunc, clearGen_);
|
||||||
|
return singleFunc;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
return singleFunc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PixelJitCache::Compile(const PixelFuncID &id) {
|
void PixelJitCache::Compile(const PixelFuncID &id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue