Skip to content

Commit

Permalink
[Render/Renderer] Added a debug log for available extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Razakhel committed Oct 12, 2024
1 parent 46bbe06 commit c91bb33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/RaZ/Render/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ void Renderer::initialize() {
s_extensions.emplace(getExtension(static_cast<unsigned int>(extIndex)));
}

#if !defined(NDEBUG) || defined(RAZ_FORCE_DEBUG_LOG)
{
std::string extMsg = "[Renderer] Available extensions:";
for (const std::string& extension : s_extensions)
extMsg += "\n - " + extension;
Logger::debug(extMsg);
}
#endif

#if !defined(RAZ_PLATFORM_MAC) && !defined(USE_OPENGL_ES) // Setting the debug message callback provokes a crash on macOS & isn't available on OpenGL ES
if (checkVersion(4, 3)) {
enable(Capability::DEBUG_OUTPUT);
Expand Down

0 comments on commit c91bb33

Please sign in to comment.