wined3d: Pass a pointer to the counter buffer to wined3d_view_gl_destroy().
commit5d4d5c593d7526214bfa688122dcdd36a3a0a802
authorHenri Verbeet <hverbeet@codeweavers.com>
Thu, 12 Dec 2019 17:33:01 +0000 (12 21:03 +0330)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 12 Dec 2019 22:17:05 +0000 (12 23:17 +0100)
tree242f82c39d0572ec2bf5b6c5e9d321066002fa6c
parent554502d6aaf29b7e1842b3384514377f0c721586
wined3d: Pass a pointer to the counter buffer to wined3d_view_gl_destroy().

If adapter_gl_destroy_unordered_access_view() is called before
wined3d_unordered_access_view_gl_cs_init() has finished executing, the
"counter_bo" field may still be 0. More generally, we shouldn't access
the "counter_bo" field from outside the CS thread.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/adapter_gl.c