summaryrefslogtreecommitdiff
path: root/src/platform_glfw.c
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-12-17 13:28:31 +0000
committeronelin <oscar@nelin.dk>2025-12-18 21:14:22 +0000
commitbb521d304aee0bb990ad92dd8cf5251a4eb1f0fa (patch)
tree00212fbfc239de8dea2fbbd221a4e540935d734c /src/platform_glfw.c
parentddcfb5d3827a6df6357dca7b29def5aca3a4fcd2 (diff)
Resize framebuffers on window resize
Diffstat (limited to 'src/platform_glfw.c')
-rw-r--r--src/platform_glfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform_glfw.c b/src/platform_glfw.c
index 394695d..33614ff 100644
--- a/src/platform_glfw.c
+++ b/src/platform_glfw.c
@@ -157,7 +157,6 @@ static void window_resize_callback(GLFWwindow* window, int width, int height) {
}
static void framebuffer_resize_callback(GLFWwindow* window, int width, int height) {
- (void)width; (void)height;
Window* w = glfwGetWindowUserPointer(window);
if (w != NULL) {
const GladGLContext* gl = w->context;
@@ -167,6 +166,7 @@ static void framebuffer_resize_callback(GLFWwindow* window, int width, int heigh
w->windowsize[0] = width;
w->windowsize[1] = height;
+ window_reset_cameras(w, w->render_targets);
//r_reset_camera(c);
}
DEBUG("FRAMEBUFFER RESIZE <%d,%d>\n", width, height);