Skip to content

Commit 43fecad

Browse files
committed
Include GLU directly in FTGL instead via glew.h
This is part of the glew replacement campaign.
1 parent 7278ec6 commit 43fecad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

graf3d/ftgl/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ ROOT_LINKER_LIBRARY(FTGL
4040
OpenGL::GLU
4141
${FREETYPE_LIBRARIES}
4242
ZLIB::ZLIB
43-
GLEW::GLEW
4443
BUILTINS
4544
FREETYPE
4645
)

graf3d/ftgl/inc/FTGL.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ typedef float FTGL_FLOAT;
2222
#include "Windows4Root.h"
2323
#endif
2424

25-
#include <GL/glew.h>
25+
#ifdef __APPLE__
26+
#include <OpenGL/glu.h>
27+
#else
28+
#include <GL/glu.h>
29+
#endif
2630

2731
#ifndef WIN32
2832
// Required for compatibility with glext.h style function definitions of

0 commit comments

Comments
 (0)