1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-06 04:46:17 +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( void D3D9DeviceEx::EmitGenerateMips(
D3D9CommonTexture* pResource) { D3D9CommonTexture* pResource) {
if (pResource->IsManaged())
UploadManagedTexture(pResource);
EmitCs([ EmitCs([
cImageView = pResource->GetSampleView(false), cImageView = pResource->GetSampleView(false),
cFilter = pResource->GetMipFilter() cFilter = pResource->GetMipFilter()