From 46ba17646361ab3821d8cc514ecce97b5ee4147c Mon Sep 17 00:00:00 2001 From: Bruno Van de Velde Date: Thu, 5 Oct 2023 20:21:32 +0200 Subject: [PATCH] Fixed compiling on Linux with SFML_OPENGL_ES --- src/SFML/Window/EglContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/EglContext.cpp b/src/SFML/Window/EglContext.cpp index ec62e8025..44f87357b 100644 --- a/src/SFML/Window/EglContext.cpp +++ b/src/SFML/Window/EglContext.cpp @@ -427,7 +427,7 @@ XVisualInfo EglContext::selectBestVisual(::Display* XDisplay, unsigned int bitsP // Get X11 visuals compatible with this EGL config int visualCount = 0; - auto availableVisuals = X11Ptr XGetVisualInfo(XDisplay, VisualIDMask, &vTemplate, &visualCount)); + auto availableVisuals = X11Ptr(XGetVisualInfo(XDisplay, VisualIDMask, &vTemplate, &visualCount)); if (visualCount == 0) {