Skip to content

Commit

Permalink
SoftGPU: Fix refactoring mistake where we could return an uninitializ…
Browse files Browse the repository at this point in the history
…ed value. Oops.
  • Loading branch information
hrydgard committed Sep 15, 2023
1 parent 9625eaf commit c2bf097
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GPU/Software/DrawPixel.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit c2bf097

Please sign in to comment.