Skip to content

Commit

Permalink
[Testbed] Replaced use of undefined macros LLGL_GL_ENABLE_OPENGL2X an…
Browse files Browse the repository at this point in the history
…d LLGL_GL_ENABLE_DSA_EXT in Testbed.

These macro are only defined for the GL backend itself, but not publicly visible.
They have been replaced in Testbed by extension and name queries.
  • Loading branch information
LukasBanana committed Sep 21, 2024
1 parent 4ae69ef commit d2338b2
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/Testbed/TestbedContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,20 +825,13 @@ void TestbedContext::LogRendererInfo()

if (renderer->GetRendererID() == LLGL::RendererID::OpenGL)
{
const bool hasDSAExtension = (std::find(info.extensionNames.begin(), info.extensionNames.end(), "GL_ARB_direct_state_access") != info.extensionNames.end());
Log::Printf(
"Configuration:\n"

#ifdef LLGL_GL_ENABLE_OPENGL2X
" - OpenGL 2.x ( Enabled )\n"
#else
" - OpenGL 2.x ( Disabled )\n"
#endif // /LLGL_GL_ENABLE_OPENGL2X

#ifdef LLGL_GL_ENABLE_DSA_EXT
" - GL_ARB_direct_state_access ( Enabled )\n"
#else
" - GL_ARB_direct_state_access ( Disabled )\n"
#endif // /LLGL_GL_ENABLE_DSA_EXT
" - Profile: %s\n"
" - DSA extension: %s\n",
renderer->GetName(),
(hasDSAExtension ? "Yes" : "No")
);
}
}
Expand Down

0 comments on commit d2338b2

Please sign in to comment.