OpenGL can’t render to resized window area

I have a glfw window and I rendered a triangle: Application's picture
But when I resize the window the triangle won't render to the new window area: Resized Window
How could I render to areas with OpenGL which are resized? Thanks in advance!
I'm using glfw, glew and c++

Read more here:

Content Attribution

This content was originally published by Uytab at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: