diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-24 14:52:01 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-24 14:52:01 +0300 |
commit | 7ce764c9ecf89f3656ea67667dc6645d5e446340 (patch) | |
tree | 72b0113de34c0eebfdde63b6a449e9dd00472fab /source/blender | |
parent | cb8da6efce80932797aaf3e10aa7eb8f3474c1ae (diff) |
Fix T79896 Awful performance with Dyntopo on
Regression caused by rB9443da6166f5. Forgot to clear the flag.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpu/opengl/gl_batch.cc | 1 |
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(); } |