On Fri Mar 22 17:58:42 2024 +0000, Zebediah Figura wrote:
Sorry, what I was trying to get at in IRC is that functions that access the handle table are already going to hold the wined3d mutex. I think it'd be a bug if they didn't.
I guess if we ever wanted to break up the wined3d mutex into e.g. per-device locks, we'd want something like this, so maybe this is fine anyway. But I'm also not sure we do want that, at least not for ddraw. Like Matteo said, native probably really does work with a BKL.