SoftGPU: Fix refactoring mistake where we could return an uninitialized value. Oops.

This commit is contained in:
Henrik Rydgård 2023-09-15 10:01:28 +02:00
parent 9625eaf29a
commit c2bf09744a

View file

@ -889,8 +889,10 @@ SingleFunc PixelJitCache::GetSingle(const PixelFuncID &id, BinManager *binner) {
if (cache_.Get(key, &singleFunc)) {
lastSingle_.Set(key, singleFunc, clearGen_);
return singleFunc;
} else {
return nullptr;
}
return singleFunc;
}
void PixelJitCache::Compile(const PixelFuncID &id) {