Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.78k stars 431 forks source link

Linux: eglQueryDevices fails on certain systems #146

Open Fighter19 opened 5 years ago

Fighter19 commented 5 years ago

System: CentOS 7.6.1810 Using integrated Intel HD Graphics

Expected:

Successfully loaded EGL library!
Running CGLSimpleDevice::HALInit...
Calling glGetString: 0x7fffe968dfe0
Version: 3.0 Mesa 18.0.5
Vendor: Intel Open Source Technology Center
Renderer: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL initialized!

Actual result:

Successfully loaded EGL library!
Failed to create and initialize a valid EGL display! Devices tried: 0

CreateInitializedEGLDisplay Failed.

Related: https://bugs.freedesktop.org/show_bug.cgi?id=103575

Suggested fix: Check for extension first if not available then use eglGetDisplay, or try to execute CreateInitializedEGLDisplay, if failed eglGetDisplay. Needs to be done in Linux binary.

fheck commented 5 years ago

I can confirm this is still happening on Debian 9 with backports (libegl1 1.1.0/libegl-mesa0 18.2.8) on an Intel HD2000. Is there any workaround available?