On Wed, 23 Jun 2021 at 23:39, Zebediah Figura z.figura12@gmail.com wrote:
dlls/wined3d/buffer.c | 12 ------------ dlls/wined3d/device.c | 12 ++++++++++++ dlls/wined3d/texture.c | 6 ++---- 3 files changed, 14 insertions(+), 16 deletions(-)
I think it's fine to move sub_resource_idx validation to the upper layers, although we may not need wined3d_resource_get_sub_resource() for that. We could even go so far as to just require valid indices in the wined3d API and doing the validation in the client libraries.