[PATCH 1/2] opengl: don't create a tmp context for glCopyTexImage2D
Ken Thomases
ken at codeweavers.com
Wed Feb 24 12:23:16 CST 2016
On Feb 24, 2016, at 12:19 PM, Miklós Máté <mtmkls at gmail.com> wrote:
>
> On 02/24/2016 05:18 PM, Ken Thomases wrote:
>>> - pglXMakeCurrent(gdi_display, object->drawable, tmp_context);
>>> + pglXMakeCurrent(gdi_display, object->drawable, prev_context);
>> prev_context is precisely the current context. So, there should be no need to make it current.
> The name of that glX function is a bit misleading. It binds a new context and a new drawable at once. This time only the drawable is new, because we need to switch to the pbuffer to copy out its contents into a texture.
Oops, right. Sorry about that.
-Ken
More information about the wine-devel
mailing list