Vulkan: Allow saving const tex levels.

This might be used for fonts, for example.  They could be replaced, so no
reason not to export.
This commit is contained in:
Unknown W. Brackets committed 2022-04-17 20:06:03 -07:00
1 parent 5d22057f80
commit 39d6dc1740
2 files changed
+1 -1

No files matched your search

-1
View File
@@ -845,7 +845,6 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
data = drawEngine_->GetPushBufferForTextureData()->PushAligned(size, &bufferOffset, &texBuf, pushAlignment);
LoadTextureLevel(*entry, (uint8_t *)data, stride, level, scaleFactor, dstFmt);
entry->vkTex->UploadMip(cmdInit, 0, mipWidth, mipHeight, texBuf, bufferOffset, stride / bpp);
break;
} else {
if (computeUpload) {
int srcBpp = dstFmt == VULKAN_8888_FORMAT ? 4 : 2;