From e81a360194b26b9d9efef3c08dd799ff3bdfefe8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 2 Jan 2022 22:30:06 +0200 Subject: [PATCH] Bump libepoxy to 1.3 1.3 has been released in 2015 which is sufficiently old enough. --- CMakeLists.txt | 2 +- src/platformsupport/scenes/opengl/openglbackend.cpp | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e12afb35f7..843d534784 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,7 +173,7 @@ set_package_properties(EGL PROPERTIES PURPOSE "Required to build KWin with EGL support" ) -find_package(epoxy) +find_package(epoxy 1.3) set_package_properties(epoxy PROPERTIES DESCRIPTION "libepoxy" URL "https://github.com/anholt/libepoxy" diff --git a/src/platformsupport/scenes/opengl/openglbackend.cpp b/src/platformsupport/scenes/opengl/openglbackend.cpp index 15190dd7ce..c55cbdba57 100644 --- a/src/platformsupport/scenes/opengl/openglbackend.cpp +++ b/src/platformsupport/scenes/opengl/openglbackend.cpp @@ -18,17 +18,6 @@ #include #include -// HACK: workaround for libepoxy < 1.3 -#ifndef GL_GUILTY_CONTEXT_RESET -#define GL_GUILTY_CONTEXT_RESET 0x8253 -#endif -#ifndef GL_INNOCENT_CONTEXT_RESET -#define GL_INNOCENT_CONTEXT_RESET 0x8254 -#endif -#ifndef GL_UNKNOWN_CONTEXT_RESET -#define GL_UNKNOWN_CONTEXT_RESET 0x8255 -#endif - namespace KWin {