sFuller
sFuller

Reputation: 1385

Rendering Area does not change when GLFW window is re-sized

I'm switching from GLUT to GLFW to find that when I re-size my GLFW window, the rendering region does not change. (IE, the content being rendered stays in the same place as it was in the old window size, and the new window area is filled with the clear color.) Do I need to take more steps to re-size the context or something such as that?

Upvotes: 3

Views: 1905

Answers (1)

sFuller
sFuller

Reputation: 1385

You need to re-size the viewport to match the size of your window.

Use glViewport();

Upvotes: 7

Related Questions