Commit 0261c465 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Don't set the pixelformat's dwSize field in CreateSurface().

This should be unnecessary.
parent a124e927
......@@ -2924,7 +2924,6 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
/* Modify some flags */
copy_to_surfacedesc2(&desc2, DDSD);
desc2.u4.ddpfPixelFormat.dwSize=sizeof(DDPIXELFORMAT); /* Just to be sure */
/* The first surface is a front buffer, the back buffer is created afterwards */
if (desc2.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
......
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