From 7e72010302d86abbf3bfa9dc3dafb3a077c49835 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 6 Jun 2020 20:17:48 +0100 Subject: [PATCH] [d3d9] Upload managed resource if needed before mip gen --- src/d3d9/d3d9_device.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index ed7ff1b1c..307f65bd7 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -4219,6 +4219,9 @@ namespace dxvk { void D3D9DeviceEx::EmitGenerateMips( D3D9CommonTexture* pResource) { + if (pResource->IsManaged()) + UploadManagedTexture(pResource); + EmitCs([ cImageView = pResource->GetSampleView(false), cFilter = pResource->GetMipFilter()