Fixed compiling on Linux with SFML_OPENGL_ES

This commit is contained in:
Bruno Van de Velde 2023-10-05 20:21:32 +02:00 committed by Chris Thrasher
parent e1fe3fdb06
commit 46ba176463

View File

@ -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<XVisualInfo[]> XGetVisualInfo(XDisplay, VisualIDMask, &vTemplate, &visualCount));
auto availableVisuals = X11Ptr<XVisualInfo[]>(XGetVisualInfo(XDisplay, VisualIDMask, &vTemplate, &visualCount));
if (visualCount == 0)
{