On 19 January 2016 at 22:28, Józef Kucia jkucia@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.