mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +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
|
// Get X11 visuals compatible with this EGL config
|
||||||
int visualCount = 0;
|
int visualCount = 0;
|
||||||
auto availableVisuals = X11Ptr<XVisualInfo[]> XGetVisualInfo(XDisplay, VisualIDMask, &vTemplate, &visualCount));
|
auto availableVisuals = X11Ptr<XVisualInfo[]>(XGetVisualInfo(XDisplay, VisualIDMask, &vTemplate, &visualCount));
|
||||||
|
|
||||||
if (visualCount == 0)
|
if (visualCount == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user