[Bf-blender-cvs] [9ac782b8230] master: Fix EGL version being printed on every startup
Brecht Van Lommel
noreply at git.blender.org
Fri Jul 30 18:44:42 CEST 2021
Commit: 9ac782b823093c1e28fb176b765069e12380c711
Author: Brecht Van Lommel
Date: Fri Jul 30 14:57:03 2021 +0200
Branches: master
https://developer.blender.org/rB9ac782b823093c1e28fb176b765069e12380c711
Fix EGL version being printed on every startup
After the switch to enable EGL over GLX. No need to print this debugging
information always.
===================================================================
M intern/ghost/intern/GHOST_ContextEGL.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_ContextEGL.cpp b/intern/ghost/intern/GHOST_ContextEGL.cpp
index a64b2aef6a5..82100e4b3f0 100644
--- a/intern/ghost/intern/GHOST_ContextEGL.cpp
+++ b/intern/ghost/intern/GHOST_ContextEGL.cpp
@@ -402,7 +402,9 @@ GHOST_TSuccess GHOST_ContextEGL::initializeDrawingContext()
if (!EGL_CHK(::eglInitialize(m_display, &egl_major, &egl_minor)))
goto error;
+#ifdef WITH_GHOST_DEBUG
fprintf(stderr, "EGL Version %d.%d\n", egl_major, egl_minor);
+#endif
if (!EGL_CHK(::eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)))
goto error;
More information about the Bf-blender-cvs
mailing list