[PATCH] winex11: Don't create a temporary context each time X11DRV_wglBindTexImageARB is called.
Ken Thomases
ken at codeweavers.com
Fri Feb 26 02:29:43 CST 2016
On Feb 25, 2016, at 9:22 AM, Miklós Máté <mtmkls at 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 at 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
More information about the wine-devel
mailing list