Skip to content

Commit fb26394

Browse files
committed
gl: APIENTRY may be not defined(linux es2)
1 parent c8919ba commit fb26394

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/GLWidgetRenderer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ namespace QtAV {
8484
#define glActiveTexture qtav_glActiveTexture
8585
#endif //QT_OPENGL_ES
8686
#endif //QT_VERSION
87+
88+
// APIENTRY may be not defined(why? linux es2). or use QOPENGLF_APIENTRY
89+
// use QGLF_APIENTRY for Qt4 crash, why? APIENTRY is defined in windows header
90+
#ifndef APIENTRY
91+
#define APIENTRY QGLF_APIENTRY
92+
#endif
8793
typedef void (APIENTRY *type_glActiveTexture) (GLenum);
8894
static type_glActiveTexture qtav_glActiveTexture = 0;
8995

0 commit comments

Comments
 (0)