Tobias Jakobi : d3d8: Fix IDirect3DDevice8::CreateImageSurface pool type.
Alexandre Julliard
julliard at winehq.org
Thu Oct 16 09:34:16 CDT 2008
Module: wine
Branch: stable
Commit: b7091494c75794c7cc7f9b776bfd9e391fc1eff9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7091494c75794c7cc7f9b776bfd9e391fc1eff9
Author: Tobias Jakobi <liquid.acid at gmx.net>
Date: Thu Oct 16 14:23:39 2008 +0200
d3d8: Fix IDirect3DDevice8::CreateImageSurface pool type.
(cherry picked from commit 9ba3d03e7848ec7881ffc3cfdcf01a76d1aa1cc5)
---
dlls/d3d8/device.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index cf864cc..476abe9 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -697,12 +697,14 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateDepthStencilSurface(LPDIRECT3DD
return hr;
}
+/* IDirect3DDevice8Impl::CreateImageSurface returns surface with pool type SYSTEMMEM */
static HRESULT WINAPI IDirect3DDevice8Impl_CreateImageSurface(LPDIRECT3DDEVICE8 iface, UINT Width, UINT Height, D3DFORMAT Format, IDirect3DSurface8** ppSurface) {
HRESULT hr;
TRACE("Relay\n");
EnterCriticalSection(&d3d8_cs);
- hr = IDirect3DDevice8Impl_CreateSurface(iface, Width, Height, Format, TRUE /* Loackable */ , FALSE /*Discard*/ , 0 /* Level */ , ppSurface, D3DRTYPE_SURFACE, 0 /* Usage (undefined/none) */ , D3DPOOL_SCRATCH, D3DMULTISAMPLE_NONE, 0 /* MultisampleQuality */);
+ hr = IDirect3DDevice8Impl_CreateSurface(iface, Width, Height, Format, TRUE /* Loackable */ , FALSE /*Discard*/ , 0 /* Level */ , ppSurface,
+ D3DRTYPE_SURFACE, 0 /* Usage (undefined/none) */ , D3DPOOL_SYSTEMMEM, D3DMULTISAMPLE_NONE, 0 /* MultisampleQuality */);
LeaveCriticalSection(&d3d8_cs);
return hr;
}
More information about the wine-cvs
mailing list