mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Simplifies and speeds up D3D11 texture uploads. Also, fixes a bug with replacement off
This commit is contained in:
1 parent
38f34fb487
commit
44c4e63753
2 files changed
+62
-44
No files matched your search
@@ -2784,7 +2784,7 @@ bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan &plan, TexCacheEnt
|
||||
|
||||
if (canReplace) {
|
||||
plan.replaced = FindReplacement(entry, plan.w, plan.h, plan.depth);
|
||||
plan.replaceValid = plan.replaced->Valid();
|
||||
plan.replaceValid = plan.replaced ? plan.replaced->Valid() : plan.replaced;
|
||||
} else {
|
||||
plan.replaced = nullptr;
|
||||
plan.replaceValid = false;
|
||||
|
||||
Reference in new issue
Block a user