[PATCH 1/1] wined3d: Fix missing data/resource type bounds check.