Commit 68fcf9d7 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

wined3d: dst_surface can't be NULL at this point (Coverity).

parent dc7cb59c
......@@ -2049,8 +2049,8 @@ HRESULT CDECL wined3d_surface_update_overlay(struct wined3d_surface *surface, co
{
surface->overlay_destrect.left = 0;
surface->overlay_destrect.top = 0;
surface->overlay_destrect.right = dst_surface ? dst_surface->resource.width : 0;
surface->overlay_destrect.bottom = dst_surface ? dst_surface->resource.height : 0;
surface->overlay_destrect.right = dst_surface->resource.width;
surface->overlay_destrect.bottom = dst_surface->resource.height;
}
if (surface->overlay_dest && (surface->overlay_dest != dst_surface || flags & WINEDDOVER_HIDE))
......
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