[PATCH 4/5] wined3d: Pass a context to surface_load_drawable.
matteo.mystral at gmail.com
Tue Oct 13 06:36:46 CDT 2015
2015-10-13 12:56 GMT+02:00 Stefan Dösinger <stefandoesinger at gmail.com>:
> surface_blt_to_drawable should take care of this if the context
> doesn't match. The newly placed context_acquire call is only
> temporary, the next set of patches will remove it again and pass a
> context to surface_load_location.
> (This reply is written from memory. I'm on Windows at the moment and
> don't have the entire patchset to double-check)
You're correct, it does acquire a context. I guess it doesn't matter
much then, that only changes the place where the potentially different
onscreen context is acquired.
I imagine that acquiring a non-specific context in
surface_load_location() is actually more similar to how it will work
at the end of the whole patchset so I see the point of doing it like
this (and I take back my complaint :).
More information about the wine-devel