Commit f1e2c5df authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only flip SFLAG_DIBSECTION once in flip_surface().

We already swap all flags at a later point in flip_surface().
parent 01992d7f
......@@ -4740,16 +4740,9 @@ void flip_surface(struct wined3d_surface *front, struct wined3d_surface *back)
/* Flip the DIBsection */
{
HBITMAP tmp;
BOOL hasDib = front->flags & SFLAG_DIBSECTION;
tmp = front->dib.DIBsection;
HBITMAP tmp = front->dib.DIBsection;
front->dib.DIBsection = back->dib.DIBsection;
back->dib.DIBsection = tmp;
if (back->flags & SFLAG_DIBSECTION) front->flags |= SFLAG_DIBSECTION;
else front->flags &= ~SFLAG_DIBSECTION;
if (hasDib) back->flags |= SFLAG_DIBSECTION;
else back->flags &= ~SFLAG_DIBSECTION;
}
/* Flip the surface data */
......
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