Fix #111699: Remove deleted interface from the VAO cache
Newer interfaces can share the same address as the old one, causing a deleted VAO to be bound. Pull Request: https://projects.blender.org/blender/blender/pulls/111929
This commit is contained in:
@@ -129,6 +129,11 @@ void GLVaoCache::remove(const GLShaderInterface *interface)
|
||||
break; /* cannot have duplicates */
|
||||
}
|
||||
}
|
||||
|
||||
if (interface_ == interface) {
|
||||
interface_ = nullptr;
|
||||
vao_id_ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void GLVaoCache::clear()
|
||||
|
||||
Reference in New Issue
Block a user