On Feb 24, 2016, at 12:19 PM, Miklós Máté mtmkls@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