Pārlūkot izejas kodu

LibAccelGfx: Don't predicate using EGL/egl.h on Linux

Any platform that has OpenGL and EGL should be able to use the class.
Andrew Kaster 1 gadu atpakaļ
vecāks
revīzija
2cc6abf309
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      Userland/Libraries/LibAccelGfx/Context.h

+ 4 - 3
Userland/Libraries/LibAccelGfx/Context.h

@@ -9,9 +9,10 @@
 #include <AK/Assertions.h>
 #include <AK/Assertions.h>
 #include <AK/OwnPtr.h>
 #include <AK/OwnPtr.h>
 
 
-#ifdef AK_OS_LINUX
-#    include <EGL/egl.h>
-#endif
+// Make sure egl.h doesn't give us definitions from X11 headers
+#define EGL_NO_X11
+#include <EGL/egl.h>
+#undef EGL_NO_X11
 
 
 namespace AccelGfx {
 namespace AccelGfx {