changed opengl method used to draw qml viewport due to a bug drawing the main menu