wined3d: UpdateSurface should take into account the offset from the source rectangle.
This commit is contained in:
parent
60bbae4b40
commit
0362ee3d16
@ -5970,6 +5970,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
|
|||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
const unsigned char* data =((const unsigned char *)IWineD3DSurface_GetData(pSourceSurface)) + offset;
|
||||||
glTexSubImage2D(glDescription->target
|
glTexSubImage2D(glDescription->target
|
||||||
,glDescription->level
|
,glDescription->level
|
||||||
,destLeft
|
,destLeft
|
||||||
@ -5978,7 +5979,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
|
|||||||
,srcHeight
|
,srcHeight
|
||||||
,glDescription->glFormat
|
,glDescription->glFormat
|
||||||
,glDescription->glType
|
,glDescription->glType
|
||||||
,IWineD3DSurface_GetData(pSourceSurface)
|
,data
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user