Re: [PATCH] winex11: Don't create a temporary context each time X11DRV_wglBindTexImageARB is called.
26 Feb
2016
26 Feb
'16
8:29 a.m.
On Feb 25, 2016, at 9:22 AM, Miklós Máté <mtmkls(a)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(a)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
3576
Age (days ago)
3576
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ken Thomases