Fix EGL version being printed on every startup

After the switch to enable EGL over GLX. No need to print this debugging
information always.
This commit is contained in:
Brecht Van Lommel 2021-07-30 14:57:03 +02:00
parent c1ec2e9d5f
commit 9ac782b823
1 changed files with 2 additions and 0 deletions

View File

@ -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;