[PATCH 1/8] wined3d: Do not update surface when empty box is passed.

Henri Verbeet hverbeet at gmail.com
Wed Jan 20 06:05:54 CST 2016


On 19 January 2016 at 22:28, Józef Kucia <jkucia at codeweavers.com> wrote:
>          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)
It seems likely that you'll need to validate box->back against
sub_resource->depth as well, although you may need 3D textures for a
reliable test.



More information about the wine-devel mailing list