Discard deleted VAO at matched context 80/302780/3
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 13 Dec 2023 10:30:28 +0000 (19:30 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 14 Dec 2023 03:50:08 +0000 (12:50 +0900)
commitdf8c6b43eec180b3082effd27b93fb55ac8eb341
tree4c643d00231d59891a85dd1ee6c3065128c765ca
parent916d7a84373a0ec04c352eb5c2504eb8b37c4890
Discard deleted VAO at matched context

Since InvalidateCachedPipeline() can be called not for currented context,
we should not call gl.DeleteVertexArrays() that timming.

Instead, let we keep discarded VAO items, and then delete them immediately,
if we call BindProgramVAO, where we can assume that the context is current.

Change-Id: Iac417a862e68bc5503e843a0c27cae98cebee5b0
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/graphics/gles-impl/gles-context.cpp