diff --git a/external/epoxy/UnpackedTarball_epoxy.mk b/external/epoxy/UnpackedTarball_epoxy.mk index ea088058429e..d72a9b9feab6 100644 --- a/external/epoxy/UnpackedTarball_epoxy.mk +++ b/external/epoxy/UnpackedTarball_epoxy.mk @@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,epoxy, \ external/epoxy/epoxy.windows.api.patch \ external/epoxy/epoxy.noegl.by.default.patch \ external/epoxy/clang-cl.patch \ + external/epoxy/epoxy.noglx_means_noglx.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/epoxy/epoxy.noglx_means_noglx.patch.1 b/external/epoxy/epoxy.noglx_means_noglx.patch.1 new file mode 100644 index 000000000000..6a5c7eb3f472 --- /dev/null +++ b/external/epoxy/epoxy.noglx_means_noglx.patch.1 @@ -0,0 +1,28 @@ +diff -ur epoxy.org/src/dispatch_common.c epoxy/src/dispatch_common.c +--- epoxy.org/src/dispatch_common.c 2017-09-15 14:59:07.458635939 +0200 ++++ epoxy/src/dispatch_common.c 2017-09-15 15:03:16.978088807 +0200 +@@ -660,10 +660,13 @@ + #elif defined(__APPLE__) + return epoxy_gl_dlsym(name); + #else ++#if PLATFORM_HAS_GLX + if (epoxy_current_context_is_glx()) { + return glXGetProcAddressARB((const GLubyte *)name); +- } else { ++ } else ++#endif + #if PLATFORM_HAS_EGL ++ { + GLenum egl_api = epoxy_egl_get_current_gl_context_api(); + + switch (egl_api) { +@@ -673,8 +676,8 @@ + case EGL_NONE: + break; + } +-#endif + } ++#endif + errx(1, "Couldn't find current GLX or EGL context.\n"); + #endif + }