glviewport problem

I’m using Windows. I’v created my gl context.
When I resize I do glviewport based on the new width & height. Unfortunatly no matter what the context is always the same size as when I created it. To get around this I decided to destroy and recreate the context every time I get a resize, but I dont think this is the right way. What could I be doing wrong?


Well, I recently struggled through this on the Mac, so this solution may or may not be applicable to you…

I had to update the underlying context in addition to the viewport. I imagine creating and destroying the context has the sam effect as this.