Fix bug that InitOpenGLState() called in Constructor