From 0757097fa0415890b72f70765990fb8a66bd0b1e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 28 Feb 2020 01:37:23 +0000 Subject: [PATCH] [d3d9] Initialize return ptr in device's GetBackBuffer The swapchain's function does not do this, but this one does. --- src/d3d9/d3d9_device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 441e258c4..e3298247f 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -326,6 +326,8 @@ namespace dxvk { UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) { + InitReturnPtr(ppBackBuffer); + if (unlikely(iSwapChain != 0)) return D3DERR_INVALIDCALL;