From 8cfca32c2af27283f930aca76316a3eb6dc64fe5 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 28 Feb 2020 01:02:56 +0000 Subject: [PATCH] [d3d9] Don't InitReturnPtr in GetBackBuffer Matches native behaviour. Found via a Wine test. --- src/d3d9/d3d9_swapchain.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 9f3952c23..0619af3a5 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -331,8 +331,6 @@ namespace dxvk { UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) { - InitReturnPtr(ppBackBuffer); - if (ppBackBuffer == nullptr) return D3DERR_INVALIDCALL;