From 61d14a18ce6c94c96c6939c68f0cce3660e1a864 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 14 Oct 2024 20:59:13 -0700 Subject: [PATCH] [d3d9] Add alternate constructor for D3D9Texture2D --- src/d3d9/d3d9_texture.cpp | 4 ++++ src/d3d9/d3d9_texture.h | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_texture.cpp b/src/d3d9/d3d9_texture.cpp index 25a131493ef..a0be6e798e5 100644 --- a/src/d3d9/d3d9_texture.cpp +++ b/src/d3d9/d3d9_texture.cpp @@ -12,6 +12,10 @@ namespace dxvk { HANDLE* pSharedHandle) : D3D9Texture2DBase( pDevice, pDesc, D3DRTYPE_TEXTURE, pSharedHandle ) { } + D3D9Texture2D::D3D9Texture2D( + D3D9DeviceEx* pDevice, + const D3D9_COMMON_TEXTURE_DESC* pDesc) + : D3D9Texture2D( pDevice, pDesc, nullptr ) { } HRESULT STDMETHODCALLTYPE D3D9Texture2D::QueryInterface(REFIID riid, void** ppvObject) { if (ppvObject == nullptr) diff --git a/src/d3d9/d3d9_texture.h b/src/d3d9/d3d9_texture.h index 50d981433c5..47354d39b13 100644 --- a/src/d3d9/d3d9_texture.h +++ b/src/d3d9/d3d9_texture.h @@ -132,7 +132,12 @@ namespace dxvk { D3D9Texture2D( D3D9DeviceEx* pDevice, const D3D9_COMMON_TEXTURE_DESC* pDesc, - HANDLE* pSharedHandle = nullptr); + HANDLE* pSharedHandle); + + D3D9Texture2D( + D3D9DeviceEx* pDevice, + const D3D9_COMMON_TEXTURE_DESC* pDesc); + HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject);