Roderick Colenbrander : wined3d: UpdateSurface should take into account the offset from the source rectangle .
Module: wine Branch: master Commit: 0362ee3d169a76a76bb81a6f63c9ecc76b899e8b URL: http://source.winehq.org/git/wine.git/?a=commit;h=0362ee3d169a76a76bb81a6f63... Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Sat Sep 20 18:25:44 2008 +0000 wined3d: UpdateSurface should take into account the offset from the source rectangle. --- dlls/wined3d/device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ff16f60..4887b9b 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -5970,6 +5970,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface, } else { + const unsigned char* data =((const unsigned char *)IWineD3DSurface_GetData(pSourceSurface)) + offset; glTexSubImage2D(glDescription->target ,glDescription->level ,destLeft @@ -5978,7 +5979,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface, ,srcHeight ,glDescription->glFormat ,glDescription->glType - ,IWineD3DSurface_GetData(pSourceSurface) + ,data ); } }
participants (1)
-
Alexandre Julliard