Use Qt provided display with GLX functions for consistency.
Remove unneeded assignment from previous code.