From 48668e90478e276b183effcd649722da16e94f8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ri=C4=8Dardas=20Barkauskas?= Date: Mon, 3 Oct 2011 17:14:47 -0500 Subject: [PATCH] ddraw: Compare IDirect3DViewport3 interface instead of IDirect3DViewportImpl. --- dlls/ddraw/viewport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/viewport.c b/dlls/ddraw/viewport.c index 3eb348eb837..910fcab0e88 100644 --- a/dlls/ddraw/viewport.c +++ b/dlls/ddraw/viewport.c @@ -320,7 +320,7 @@ IDirect3DViewportImpl_SetViewport(IDirect3DViewport3 *iface, IDirect3DDevice3_GetCurrentViewport(d3d_device3, ¤t_viewport); if (current_viewport) { - if ((IDirect3DViewportImpl *)current_viewport == This) viewport_activate(This, FALSE); + if (current_viewport == iface) viewport_activate(This, FALSE); IDirect3DViewport3_Release(current_viewport); } } @@ -974,7 +974,7 @@ IDirect3DViewportImpl_SetViewport2(IDirect3DViewport3 *iface, IDirect3DDevice3_GetCurrentViewport(d3d_device3, ¤t_viewport); if (current_viewport) { - if ((IDirect3DViewportImpl *)current_viewport == This) viewport_activate(This, FALSE); + if (current_viewport == iface) viewport_activate(This, FALSE); IDirect3DViewport3_Release(current_viewport); } } -- 2.11.4.GIT