Commit 2d1a941b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Properly check if a surface has a DIB section in gdi_surface_map().

parent 56e3e05e
......@@ -1983,7 +1983,7 @@ static void gdi_surface_map(struct wined3d_surface *surface, const RECT *rect, D
TRACE("surface %p, rect %s, flags %#x.\n",
surface, wine_dbgstr_rect(rect), flags);
if (!surface->resource.allocatedMemory)
if (!(surface->flags & SFLAG_DIBSECTION))
{
/* This happens on gdi surfaces if the application set a user pointer
* and resets it. Recreate the DIB section. */
......
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