80a14c2a
by Matteo Bruni at 2025-12-22T13:12:14+01:00
wined3d/gl: Only check GL context when accessing onscreen resources.
Checking every time the GL context is acquired is a lot. We could do
something more fancy (e.g. checking in TestCooperativeLevel() and
such) but I don't think it's worth it.
This avoids frequent GetDC() calls, which introduce significant
locking overhead.