Commit: ce58f33b0b4890f4d698377161a5eee187e29dac
Parent: e080b99dc9c1f0f62c13f1ff6aa7fe41e471860f
Author: Randy Palamar
Date: Tue, 27 Aug 2024 05:32:11 -0600
make sure we always reblit if the window resized/hot reloaded
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
@@ -58,6 +58,7 @@ do_debug(GLCtx *gl)
nanosleep(&sleep_time, &sleep_time);
load_library(libname);
init_callbacks(gl);
+ gl->flags |= NEEDS_BLIT;
fputs("Reloaded Main Program\n", stderr);
}
}
diff --git a/vtgl.c b/vtgl.c
@@ -567,7 +567,7 @@ fb_callback(GLFWwindow *win, i32 w, i32 h)
glBindTexture(GL_TEXTURE_2D, t->gl.fb_tex);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);
- t->gl.flags |= NEEDS_RESIZE;
+ t->gl.flags |= NEEDS_RESIZE|NEEDS_BLIT;
}
static void