on-internet
← Community

Only calling the framebuffer size callback when the user is done resizing the window?

Stack Overflow ·

I'm making a little tool with ImGui and GLFW, however when I resize the window, the framebuffer size callback (glfwSetFramebufferSizeCallback) fires immediately. This results in unnecessary glViewport calls (yes I am aware that not doing this would result in black edges when making the window bigger). I want it to fire only when I let go of the window and stop resizing, how do I do that? I have searched both this site and Startpage, yet I haven't found anything like this. Here's the part of my window class that handles GLFW initialization: glfwInit(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,

Comments

Sign in or sign up to comment and upvote.

No comments yet.