opengl - 终止 glfw 并关闭任何打开的窗口是否会破坏使用所述窗口的任何 opengl 上下文?

标签 opengl glfw

是否调用:

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/

相关文章:

c++ - 深度测试丢弃自定义帧缓冲区上的片段

java - JVM 使用 JOGL、顶点缓冲区对象并尝试在 finalize 方法中释放 vbo 时崩溃

opengl - glsl 性能 : tan(acos(x)) vs sqrt(1-x*x)/x

GLFW 多窗口多线程 OpenGL 和 Vulkan 混合

opengl - 在 OSX Lion 上使用 OpenGL 3.2 与 Derelict3 和 GLFW 3

c++ - glReadPixels() 不返回抗锯齿图片

opengl - 关于低于 GL 3.2 的 GLFW 行为的问题

c++ - 当我添加库 : dyld: Library not loaded 时,Xcode 出错

c++ - 当 Visual Studio 未以管理员身份运行时(GLFW/glad 应用程序),KernelBase.dll 异常代码 0x0EEDFADE(但没有崩溃)

c++ - OpenGL 3.3/GLSL 和 C++ 错误 : "must write to gl_Position"