qt 中 使用 opengl 上下文 (context) 相关的注意事项

qt 中 使用 opengl 相关的注意事项

本人移植了一个glut到qt的项目,前期没有注意相关的上下文的使用,导致相关的显示混乱。

解决方案

makeCurrent();在每一个类函数中加上这一句话。

Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/10927239.html