=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Do not update surface when empty box is passed.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 20 10:50:02 CST 2016
Module: wine
Branch: master
Commit: 3d7c666005d5aac1c810dcf1fc82498df8d9b91d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d7c666005d5aac1c810dcf1fc82498df8d9b91d
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Tue Jan 19 22:28:05 2016 +0100
wined3d: Do not update surface when empty box is passed.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7c5a4c2..d308083 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4070,7 +4070,8 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
if (box)
{
if (box->left >= box->right || box->right > sub_resource->width
- || box->top >= box->bottom || box->bottom > sub_resource->height)
+ || box->top >= box->bottom || box->bottom > sub_resource->height
+ || box->front >= box->back)
{
WARN("Invalid box (%u, %u, %u)->(%u, %u, %u) specified.\n",
box->left, box->top, box->front, box->right, box->bottom, box->back);
More information about the wine-cvs
mailing list