[PATCH 4/4] ddraw: Do not use unset viewport in viewport_activate().
Józef Kucia
jkucia at codeweavers.com
Mon Nov 12 08:13:06 CST 2018
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/ddraw/viewport.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/ddraw/viewport.c b/dlls/ddraw/viewport.c
index 8cc60f1eb158..e6f862156ea7 100644
--- a/dlls/ddraw/viewport.c
+++ b/dlls/ddraw/viewport.c
@@ -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)
{
--
2.18.1
More information about the wine-devel
mailing list