Swtich from GLUT to Windows app = problems

I recently switched from a GLUT based program to a WinMain() entry point and my shadows became a series of horizontal strips rather than a solid image. My shadows worked fine in my GLUT program but for some reason they aren’t working how they are supposed to. Is there something I need to do additionally when I introduce a WinMain() entry point in terms of how things are rendered. Any common mistakes or errors that
happen would be most appreciated.

It is a lot you have to do that GLUT did before. Check that you really ask for the same things like stencil buffer,…