Simplifies and speeds up D3D11 texture uploads. Also, fixes a bug with replacement off

This commit is contained in:
Henrik Rydgård committed 2023-03-09 14:43:59 +01:00
1 parent 38f34fb487
commit 44c4e63753
2 files changed
+62 -44

No files matched your search

+1 -1
View File
@@ -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;