On Feb 25, 2016, at 9:22 AM, Miklós Máté mtmkls@gmail.com wrote:
Theoretically wglBindTexImageARB is supposed to be a fast render-to-texture method, and creating a new context is anything but fast.
This fixes horrible performance in Star Wars Knights of the Old Republic when post-process effects are enabled.
Signed-off-by: Miklós Máté mtmkls@gmail.com
dlls/winex11.drv/opengl.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
You need to destroy the temporary context when the pbuffer object is destroyed in X11DRV_wglDestroyPbufferARB().
-Ken