logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

2.28.2-opengl-without-X-fixes.patch (1656B)


  1. From c67efa2bbe2094b40b4e104bb26497c2aff5ce68 Mon Sep 17 00:00:00 2001
  2. From: Mart Raudsepp <leio@gentoo.org>
  3. Date: Sat, 9 May 2020 23:11:52 +0300
  4. Subject: [PATCH] Clean up OpenGLShims.h conditionals in a few places to fix
  5. some build configurations
  6. ---
  7. Source/WebCore/platform/graphics/GLContext.cpp | 5 ++++-
  8. Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp | 5 ++++-
  9. 2 files changed, 8 insertions(+), 2 deletions(-)
  10. diff --git a/Source/WebCore/platform/graphics/GLContext.cpp b/Source/WebCore/platform/graphics/GLContext.cpp
  11. index b217988b990..1ba0eb8a482 100644
  12. --- a/Source/WebCore/platform/graphics/GLContext.cpp
  13. +++ b/Source/WebCore/platform/graphics/GLContext.cpp
  14. @@ -28,6 +28,9 @@
  15. #if USE(GLX)
  16. #include "GLContextGLX.h"
  17. +#endif
  18. +
  19. +#if !USE(OPENGL_ES) && !USE(LIBEPOXY) && !USE(ANGLE)
  20. #include "OpenGLShims.h"
  21. #endif
  22. @@ -57,7 +60,7 @@ inline ThreadGlobalGLContext* currentContext()
  23. static bool initializeOpenGLShimsIfNeeded()
  24. {
  25. -#if USE(OPENGL_ES) || USE(LIBEPOXY)
  26. +#if USE(OPENGL_ES) || USE(LIBEPOXY) || USE(ANGLE)
  27. return true;
  28. #else
  29. static bool initialized = false;
  30. diff --git a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
  31. index 3515be452b2..82cce70f14b 100644
  32. --- a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
  33. +++ b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
  34. @@ -64,7 +64,10 @@
  35. #if USE(GLX)
  36. #include <GL/glx.h>
  37. -#include <WebCore/OpenGLShims.h>
  38. +#endif
  39. +
  40. +#if !USE(OPENGL_ES) && !USE(LIBEPOXY) && !USE(ANGLE)
  41. +#include "WebCore/OpenGLShims.h"
  42. #endif
  43. #if USE(GSTREAMER)
  44. --
  45. 2.20.1