From 07335cbeb11f9cf0941e895c9207e2c00f7115b6 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 12 Jan 2026 11:37:39 +0100 Subject: [PATCH] egl: Remove duplicated logging of EGL version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The line below already prints it. Signed-off-by: Robert Mader Reviewed-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Reviewed-by: Bryan O'Donoghue Tested-by: Hans de Goede # Thinkpad X1 Carbon G13 IPU7 ov08x40 Tested-by: Milan Zamazal # TI AM69 Signed-off-by: Kieran Bingham --- src/libcamera/egl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libcamera/egl.cpp b/src/libcamera/egl.cpp index fcaf7c58..a8852527 100644 --- a/src/libcamera/egl.cpp +++ b/src/libcamera/egl.cpp @@ -285,8 +285,6 @@ int eGL::initEGLContext(GBM *gbmContext) EGLint numConfigs; EGLConfig config; - EGLint major; - EGLint minor; if (!eglBindAPI(EGL_OPENGL_ES_API)) { LOG(eGL, Error) << "API bind fail"; @@ -299,12 +297,11 @@ int eGL::initEGLContext(GBM *gbmContext) goto fail; } - if (eglInitialize(display_, &major, &minor) != EGL_TRUE) { + if (eglInitialize(display_, nullptr, nullptr) != EGL_TRUE) { LOG(eGL, Error) << "eglInitialize fail"; goto fail; } - LOG(eGL, Info) << "EGL: version " << major << "." << minor; LOG(eGL, Info) << "EGL: EGL_VERSION: " << eglQueryString(display_, EGL_VERSION); LOG(eGL, Info) << "EGL: EGL_VENDOR: " << eglQueryString(display_, EGL_VENDOR); LOG(eGL, Info) << "EGL: EGL_CLIENT_APIS: " << eglQueryString(display_, EGL_CLIENT_APIS);