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:
Martin Gräßlin 2015-11-03 10:12:55 +01:00
parent f2ad98aa3a
commit c50da5bdee

View file

@ -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
{