Skip to content

Commit 03a633b

Browse files
committed
Directly include OpenGL in gl2ps
The OpenGL ROOT wrapper headers like TGLIncludes are deprecated, and not using them internally in ROOT makes the migration from Glew to Glad easier.
1 parent 619dfe8 commit 03a633b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

graf3d/gl/src/gl2ps/gl2ps.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@
3838
#include <cstdio>
3939
#include <cstdlib>
4040

41-
#include "../TGLIncludes.h"
41+
#ifdef WIN32
42+
#include "Windows4Root.h"
43+
#endif
44+
45+
#ifdef __APPLE__
46+
#include <OpenGL/gl.h>
47+
#else
48+
#include <GL/gl.h>
49+
#endif
4250

4351
#define GL2PSDLL_API
4452

0 commit comments

Comments
 (0)