From b5f6e81a7b77fa1eecc5d11998e3f37e4517552a Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sun, 9 Nov 2025 13:27:56 +0100 Subject: [PATCH] resize viewport --- src/Main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index b317f02..bf99552 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -199,6 +199,10 @@ int main() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0, 0, 0, 1); + int width, height; + glfwGetWindowSize(window, &width, &height); + glViewport(0, 0, width, height); + // float positions[3 * PARTICLE_COUNT]; // glGetBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, sizeof(float) * 3 * PARTICLE_COUNT, positions);