Merge pull request #14994 from hrydgard/more-crash-fixes

More crash fixes
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-10-08 22:56:08 +02:00
commit 14bf5de83c
4 files changed
+33 -11

No files matched your search

+1 -1
View File
@@ -934,7 +934,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
if (replaced.Valid()) {
// Directly load the replaced image.
data = drawEngine_->GetPushBufferForTextureData()->PushAligned(size, &bufferOffset, &texBuf, pushAlignment);
replaced.Load(i, data, stride);
replaced.Load(i, data, stride); // if it fails, it'll just be garbage data... OK for now.
entry->vkTex->UploadMip(cmdInit, i, mipWidth, mipHeight, texBuf, bufferOffset, stride / bpp);
} else {
auto dispatchCompute = [&](VkDescriptorSet descSet) {