Commit 70eab9d0 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Support custom pitches in wined3d_surface_update_desc.

parent 8d9ecf70
......@@ -2861,7 +2861,10 @@ HRESULT CDECL wined3d_surface_update_desc(struct wined3d_surface *surface,
surface->resource.format = format;
surface->resource.multisample_type = multisample_type;
surface->resource.multisample_quality = multisample_quality;
surface->resource.size = resource_size;
if (surface->pitch)
surface->resource.size = height * surface->pitch;
else
surface->resource.size = resource_size;
if (create_dib)
{
......
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