[PATCH 3/5] wined3d: Move sub_resource_idx validation to wined3d_device_context_(un)map().

Henri Verbeet hverbeet at gmail.com
Thu Jun 24 10:03:19 CDT 2021


On Wed, 23 Jun 2021 at 23:39, Zebediah Figura <z.figura12 at 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.



More information about the wine-devel mailing list