Move OpenGL management to the top level to be merged with window proc.