wined3d: Do not addref a NULL backbuffer in IWineD3DSwapChain::GetBackBuffer.
This commit is contained in:
parent
00598e49cf
commit
a55da88d0b
|
@ -382,7 +382,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, UIN
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Note inc ref on returned surface */
|
/* Note inc ref on returned surface */
|
||||||
IWineD3DSurface_AddRef(*ppBackBuffer);
|
if(*ppBackBuffer) IWineD3DSurface_AddRef(*ppBackBuffer);
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue