提交 944c2dc9 编写于 作者: F fryshorts

Destroy swapchain before removing the window info

This fixes an issue reported by valgrind where cleaning up the
swapchain fails because the window info is destroyed before.
上级 739c5818
......@@ -276,9 +276,9 @@ void gl_platform_destroy(struct gl_platform *platform)
Display *dpy = platform->swap.wi->display;
glXMakeCurrent(dpy, None, NULL);
gl_platform_cleanup_swapchain(&platform->swap);
glXDestroyContext(dpy, platform->context);
gl_windowinfo_destroy(platform->swap.wi);
gl_platform_cleanup_swapchain(&platform->swap);
bfree(platform);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册