mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed compiling on Linux with SFML_OPENGL_ES
This commit is contained in:
parent
e1fe3fdb06
commit
46ba176463
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user