Skip to content

Commit dba8512

Browse files
authored
Work around bad interaction of including glew and QOpenGLContext (openscad#5374)
Context: openscad#5371 (comment)
1 parent f43c1bd commit dba8512

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/QGLView.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#pragma once
22

33
#include "glview/system-gl.h"
4+
45
#include <QImage>
56
#include <QMouseEvent>
6-
#include <QOpenGLContext>
77
#include <QPoint>
88
#include <QWheelEvent>
99
#include <QWidget>
@@ -104,5 +104,7 @@ private slots:
104104
};
105105

106106
/* These are defined in QLGView2.cc. See the commentary there. */
107+
// Can't include <QOpenGLContext>, as it will clash with glew. Forward declare.
108+
class QOpenGLContext;
107109
QOpenGLContext *getGLContext();
108110
void setGLContext(QOpenGLContext *);

0 commit comments

Comments
 (0)