From 2d9d0cc32db594cd64af19d0fb62953656bf076c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 20 Sep 2014 10:39:59 +0200 Subject: [PATCH] GRAPHICS: Clear the extensions list before initializing it Graphics::initExtensions may now be called several times. --- graphics/opengles2/extensions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/opengles2/extensions.cpp b/graphics/opengles2/extensions.cpp index 74afdb07a26..ab15e963b49 100644 --- a/graphics/opengles2/extensions.cpp +++ b/graphics/opengles2/extensions.cpp @@ -34,6 +34,8 @@ namespace Graphics { static Common::List g_extensions; void initExtensions() { + g_extensions.clear(); + const char *exts = reinterpret_cast(glGetString(GL_EXTENSIONS)); Common::StringTokenizer tokenizer(exts, " "); while (!tokenizer.empty()) {