From 8ace6e51f98c9922bac47e0ab9208556a81f2724 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 1 Nov 2022 00:01:53 +0100 Subject: [PATCH] fix msvc complaining --- .../src/mm/opengl/render_tasks/lite_particles2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp b/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp index 305b6a0..7dd5060 100644 --- a/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp +++ b/framework/opengl_renderer/src/mm/opengl/render_tasks/lite_particles2d.cpp @@ -311,8 +311,8 @@ void LiteParticles2D::setParticleBufferSize(uint32_t new_buffer_size) { } void LiteParticles2D::resetBuffers(void) { - const auto gl_buffer_type = GL_DYNAMIC_COPY; auto reset_buffer_0 = [this](size_t i) { + static const auto gl_buffer_type = GL_DYNAMIC_COPY; auto* data = _particles_0_buffers[i]->map(_particle_buffer_size, gl_buffer_type); for (size_t x = 0; x < _particle_buffer_size; x++) { data[x] = glm::vec4{