mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 19:32:11 +00:00
GRAPHICS: Clear the extensions list before initializing it
Graphics::initExtensions may now be called several times.
This commit is contained in:
parent
7a6d5fad0b
commit
2d9d0cc32d
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user