mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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:
parent
528cacca5f
commit
0757097fa0
@ -326,6 +326,8 @@ namespace dxvk {
|
|||||||
UINT iBackBuffer,
|
UINT iBackBuffer,
|
||||||
D3DBACKBUFFER_TYPE Type,
|
D3DBACKBUFFER_TYPE Type,
|
||||||
IDirect3DSurface9** ppBackBuffer) {
|
IDirect3DSurface9** ppBackBuffer) {
|
||||||
|
InitReturnPtr(ppBackBuffer);
|
||||||
|
|
||||||
if (unlikely(iSwapChain != 0))
|
if (unlikely(iSwapChain != 0))
|
||||||
return D3DERR_INVALIDCALL;
|
return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user