Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-24 14:52:01 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-24 14:52:01 +0300
commit7ce764c9ecf89f3656ea67667dc6645d5e446340 (patch)
tree72b0113de34c0eebfdde63b6a449e9dd00472fab /source/blender/gpu/opengl/gl_batch.cc
parentcb8da6efce80932797aaf3e10aa7eb8f3474c1ae (diff)
Fix T79896 Awful performance with Dyntopo on
Regression caused by rB9443da6166f5. Forgot to clear the flag.
Diffstat (limited to 'source/blender/gpu/opengl/gl_batch.cc')
-rw-r--r--source/blender/gpu/opengl/gl_batch.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_batch.cc b/source/blender/gpu/opengl/gl_batch.cc
index 89784a17ec6..2c80f3b31c6 100644
--- a/source/blender/gpu/opengl/gl_batch.cc
+++ b/source/blender/gpu/opengl/gl_batch.cc
@@ -305,6 +305,7 @@ void GLBatch::bind(int i_first)
GPU_context_active_get()->state_manager->apply_state();
if (flag & GPU_BATCH_DIRTY) {
+ flag &= ~GPU_BATCH_DIRTY;
vao_cache_.clear();
}