Blender Git Loki

Git Commits -> Revision 96abe5e

Revision 96abe5e by Clément Foucault (master)
May 4, 2021, 20:58 (GMT)
DRW: Fix issue with batch reusing freed VBO indices.

Some discard of vertbuf were not correctly followed by discards of
the GPUBatches that were using them. This lead to a use-after-free
situation where GPUBatches would reuse old VBO information. This did
not crash immediatly because the VBO indices were cached by our VAO
caching system. It kept working on some implementation because VBO
reference in the VAO (probably) preventing the VBO from being freed
by reference counting.

This fixes T85977 NVidia: Random crashes in 'DrvPresentBuffers'

Commit Details:

Full Hash: 96abe5ebbc55323fc28ee4f6a852c912298c72d1
Parent Commit: d28c461
Lines Changed: +16, -1

1 Modified Path:

/source/blender/draw/intern/draw_cache_impl_mesh.c (+16, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021