当同时开启两个opengl窗口然后关闭的时候,程序总是输出:
Texture is not valid in the current context.
Texture has not been destroyed
解决这样的问题可以在继承QOpenGLWidget的窗口的析构函数中加入makeCurrent();
当同时开启两个opengl窗口然后关闭的时候,程序总是输出:
Texture is not valid in the current context.
Texture has not been destroyed
解决这样的问题可以在继承QOpenGLWidget的窗口的析构函数中加入makeCurrent();