pass internal dimensions to shaders

This commit is contained in:
2025-09-22 22:18:29 +02:00
parent dd42319846
commit 8bfcbfa128
6 changed files with 49 additions and 29 deletions
+2
View File
@@ -122,6 +122,8 @@ double window_get_time() { return glfwGetTime(); }
void window_use(Window *window, Context *context) {
glfwMakeContextCurrent(window);
glfwGetFramebufferSize(window, &context->width, &context->height);
context->internal_width = (int)(context->internal_height *
(float)context->width / (context->height));
}
void window_close(Window *window) {