Fix compile with libepoxy < 1.3
Compile failure on KDE CI: error: ‘GL_GUILTY_CONTEXT_RESET’ was not declared in this scope It's not defined in libepoxy 1.2, so let's define it to the values it has in 1.3.
This commit is contained in:
parent
f2ad98aa3a
commit
c50da5bdee
1 changed files with 11 additions and 0 deletions
|
@ -68,6 +68,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <KNotification>
|
||||
#include <KProcess>
|
||||
|
||||
// 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
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue