Original Post
I am creating a window for opengl, the window appears and disapears. I have checked what PeekMessage is getting, and it appears the first and only message is WM_QUIT. So the program ends. All it should be doing is creating the opengl window and staying there.