Fix T79811 MacOS: Edit Mode - vertex/edge/face selection is missing

The VAO reconfiguration from the offset workaround was not working.
This commit is contained in:
Clément Foucault 2020-08-25 17:40:21 +02:00
parent b2b4f9fc9b
commit 949d92ad5d
Notes: blender-bot 2023-02-14 00:06:52 +01:00
Referenced by issue #79811, MacOS: Edit Mode - vertex/edge/face selection is missing
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ void GLVaoCache::init(void)
}
vao_base_instance_ = 0;
base_instance_ = 0;
vao_id_ = 0;
}
/* Create a new VAO object and store it in the cache. */
@ -239,6 +240,7 @@ GLuint GLVaoCache::base_instance_vao_get(GPUBatch *batch, int i_first)
#ifdef __APPLE__
glDeleteVertexArrays(1, &vao_base_instance_);
vao_base_instance_ = 0;
base_instance_ = 0;
#endif
if (vao_base_instance_ == 0) {