generated from Persson-dev/OpenGLComputeShader
resize viewport
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user