Skip to content

Commit

Permalink
Fixed|GL: Enumerating OpenGL extensions
Browse files Browse the repository at this point in the history
The OpenGL API is different than before; no need to manually split
the list of extensions.
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 9583bdd commit e951f63
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doomsday/apps/client/src/gl/sys_opengl.cpp
Expand Up @@ -349,8 +349,14 @@ void Sys_GLPrintExtensions(void)

LOG_GL_MSG(_E(b) "OpenGL Extensions:");

const String allExts = reinterpret_cast<const char *>(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<const char *>(glGetStringi(GL_EXTENSIONS, i));
}
printExtensions(allExts);

/*
#if WIN32
Expand Down

0 comments on commit e951f63

Please sign in to comment.