Commit ecad1995 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

ddraw: Do not use unset viewport in viewport_activate().

parent f4865564
......@@ -68,6 +68,12 @@ void viewport_activate(struct d3d_viewport *This, BOOL ignore_lights)
}
}
if (This->version == DDRAW_VIEWPORT_VERSION_NONE)
{
TRACE("Viewport data was not set.\n");
return;
}
/* And copy the values in the structure used by the device */
if (This->version == DDRAW_VIEWPORT_VERSION_2)
{
......
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