GRAPHICS: Clear the extensions list before initializing it

Graphics::initExtensions may now be called several times.
This commit is contained in:
Bastien Bouclet 2014-09-20 10:39:59 +02:00 committed by Dries Harnie
parent 7a6d5fad0b
commit 2d9d0cc32d

View File

@ -34,6 +34,8 @@ namespace Graphics {
static Common::List<Common::String> g_extensions;
void initExtensions() {
g_extensions.clear();
const char *exts = reinterpret_cast<const char *>(glGetString(GL_EXTENSIONS));
Common::StringTokenizer tokenizer(exts, " ");
while (!tokenizer.empty()) {