diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ff16f60afee..4887b9bd942 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 ); } }