1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 10:24:10 +01:00

[d3d9] Upload managed resource if needed before mip gen

This commit is contained in:
Joshua Ashton 2020-06-06 20:17:48 +01:00 committed by Joshie
parent 04397e5a7b
commit 7e72010302

View File

@ -4219,6 +4219,9 @@ namespace dxvk {
void D3D9DeviceEx::EmitGenerateMips(
D3D9CommonTexture* pResource) {
if (pResource->IsManaged())
UploadManagedTexture(pResource);
EmitCs([
cImageView = pResource->GetSampleView(false),
cFilter = pResource->GetMipFilter()