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);