1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[d3d9] Initialize return ptr in device's GetBackBuffer

The swapchain's function does not do this, but this one does.
This commit is contained in:
Joshua Ashton 2020-02-28 01:37:23 +00:00
parent 528cacca5f
commit 0757097fa0

View File

@ -326,6 +326,8 @@ namespace dxvk {
UINT iBackBuffer,
D3DBACKBUFFER_TYPE Type,
IDirect3DSurface9** ppBackBuffer) {
InitReturnPtr(ppBackBuffer);
if (unlikely(iSwapChain != 0))
return D3DERR_INVALIDCALL;