소스 검색

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 년 전
부모
커밋
2cc6abf309
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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/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 {