Skip to content

Commit

Permalink
[d3d9] Add alternate constructor for D3D9Texture2D
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Oct 15, 2024
1 parent 8ae953e commit 61d14a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/d3d9/d3d9_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion src/d3d9/d3d9_texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 61d14a1

Please sign in to comment.