From ed51756191782579fd6811e986a74a61fe252ea2 Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Mon, 22 Aug 2011 09:10:25 +1000 Subject: [PATCH] Compilation fix on mac It's safer to define GL_CLAMP_TO_EDGE if not available than to include GL/glext.h. --- ground/openpilotgcs/src/libs/utils/cachedsvgitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/libs/utils/cachedsvgitem.cpp b/ground/openpilotgcs/src/libs/utils/cachedsvgitem.cpp index 93a38afb1..2edef8ddf 100644 --- a/ground/openpilotgcs/src/libs/utils/cachedsvgitem.cpp +++ b/ground/openpilotgcs/src/libs/utils/cachedsvgitem.cpp @@ -26,7 +26,9 @@ #include #include -#include +#ifndef GL_CLAMP_TO_EDGE +#define GL_CLAMP_TO_EDGE 0x812F +#endif CachedSvgItem::CachedSvgItem(QGraphicsItem * parent) : QGraphicsSvgItem(parent),