https://www.opengl.org/wiki/Common_Mistakes
- Do not use constructors/destructors to initialize/destroy OpenGL objects. Instead, use member functions of these classes for these purposes. This violates RAII principles, so this is not the best course of action.
OpenGL Common Mistakes
原文:http://www.cnblogs.com/lilei9110/p/5207906.html