Skip to content

Commit

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

0 comments on commit 8ae953e

Please sign in to comment.