Commit 1f32d623 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Convert the full surface for now.

Until we have proper subrectangle handling for offscreen surfaces, surface conversion has to use the real surface sizes, and not the size of the opengl subrectangle that it is going to upload. Due to the power of 2 limitations the gl height may be bigger than the real surface height. If that is not the case, the uploading function will pick the correct parts from the converted surface data.
parent 20a07693
......@@ -1714,7 +1714,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) {
pitch = IWineD3DSurface_GetPitch(iface);
if((convert != NO_CONVERSION) && This->resource.allocatedMemory) {
int height = This->glRect.bottom - This->glRect.top;
int height = This->currentDesc.Height;
/* Stick to the alignment for the converted surface too, makes it easier to load the surface */
outpitch = width * bpp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment