From 8ae953e90e1e3239d6ded2fde717676cfe207d63 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 14 Oct 2024 20:56:30 -0700 Subject: [PATCH] [d3d9] Add alternate constructor for D3D9Surface --- src/d3d9/d3d9_surface.cpp | 9 +++++++++ src/d3d9/d3d9_surface.h | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_surface.cpp b/src/d3d9/d3d9_surface.cpp index a9e3d24da07..7c6f29abd6e 100644 --- a/src/d3d9/d3d9_surface.cpp +++ b/src/d3d9/d3d9_surface.cpp @@ -20,6 +20,15 @@ namespace dxvk { nullptr, pContainer) { } + D3D9Surface::D3D9Surface( + D3D9DeviceEx* pDevice, + const D3D9_COMMON_TEXTURE_DESC* pDesc) + : D3D9Surface( + pDevice, + pDesc, + nullptr, + nullptr) { } + D3D9Surface::D3D9Surface( D3D9DeviceEx* pDevice, D3D9CommonTexture* pTexture, diff --git a/src/d3d9/d3d9_surface.h b/src/d3d9/d3d9_surface.h index d35bad7d38e..e6a6e800190 100644 --- a/src/d3d9/d3d9_surface.h +++ b/src/d3d9/d3d9_surface.h @@ -20,8 +20,12 @@ namespace dxvk { D3D9Surface( D3D9DeviceEx* pDevice, const D3D9_COMMON_TEXTURE_DESC* pDesc, - IUnknown* pContainer = nullptr, - HANDLE* pSharedHandle = nullptr); + IUnknown* pContainer, + HANDLE* pSharedHandle); + + D3D9Surface( + D3D9DeviceEx* pDevice, + const D3D9_COMMON_TEXTURE_DESC* pDesc); D3D9Surface( D3D9DeviceEx* pDevice,