check the current OpenGL context ViewerGL()::makeCurrent() was buggy.