是否调用:
glfwTerminate();
glfwDestroyWindow(windowID);
终止任何正在使用现已关闭的窗口的 glfw 上下文?
最佳答案
是的:
Window objects: The GLFWwindow object encapsulates both a window and a context. They are created with glfwCreateWindow and destroyed with glfwDestroyWindow, or glfwTerminate, if any remain.
关于opengl - 终止 glfw 并关闭任何打开的窗口是否会破坏使用所述窗口的任何 opengl 上下文?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63785674/