Roderick Colenbrander : wined3d: UpdateSurface should take into account the offset from the source rectangle .
Alexandre Julliard
julliard at winehq.org
Mon Sep 22 07:04:52 CDT 2008
Module: wine
Branch: master
Commit: 0362ee3d169a76a76bb81a6f63c9ecc76b899e8b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0362ee3d169a76a76bb81a6f63c9ecc76b899e8b
Author: Roderick Colenbrander <thunderbird2k at 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
);
}
}
More information about the wine-cvs
mailing list