From e951f63251aeac1a6a9106664f6d452eab38b917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Fri, 27 Jul 2018 13:23:40 +0300 Subject: [PATCH] Fixed|GL: Enumerating OpenGL extensions The OpenGL API is different than before; no need to manually split the list of extensions. --- doomsday/apps/client/src/gl/sys_opengl.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doomsday/apps/client/src/gl/sys_opengl.cpp b/doomsday/apps/client/src/gl/sys_opengl.cpp index d3ba344a5c..3470412905 100644 --- a/doomsday/apps/client/src/gl/sys_opengl.cpp +++ b/doomsday/apps/client/src/gl/sys_opengl.cpp @@ -349,8 +349,14 @@ void Sys_GLPrintExtensions(void) LOG_GL_MSG(_E(b) "OpenGL Extensions:"); - const String allExts = reinterpret_cast(glGetString(GL_EXTENSIONS)); - printExtensions(allExts.split(RegExp::WHITESPACE)); + int count = 0; + glGetIntegerv(GL_NUM_EXTENSIONS, &count); + StringList allExts; + for (int i = 0; i < count; ++i) + { + allExts << reinterpret_cast(glGetStringi(GL_EXTENSIONS, i)); + } + printExtensions(allExts); /* #if WIN32