diff options
author | Michael Brasser <michael.brasser@live.com> | 2016-06-21 15:20:48 -0500 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2016-07-05 19:10:28 +0000 |
commit | 16a5ff5ffb00b2be7046a2350717e0cf7370a9a3 (patch) | |
tree | 642d24b785950e7291978da702df4779f53cc8d3 /customcontext | |
parent | e4b2c470810341710a6c299ac3c7f86fe39c6d06 (diff) |
Fix compile with OpenGL ES 3.
Change-Id: I46a5b615f219bfddc77058cc30e3e1bd61f44333
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'customcontext')
-rw-r--r-- | customcontext/programbinary.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/customcontext/programbinary.cpp b/customcontext/programbinary.cpp index b8424e7..ea9e63c 100644 --- a/customcontext/programbinary.cpp +++ b/customcontext/programbinary.cpp @@ -71,12 +71,15 @@ */ #define GL_PROGRAM_BINARY_LENGTH 0x8741 + +#ifndef QT_OPENGL_ES_3 extern "C" { typedef void (* _glGetProgramBinary)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); typedef void (* _glProgramBinary)(GLuint program, GLenum binaryFormat, const void *binary, GLint length); } static _glGetProgramBinary glGetProgramBinary; static _glProgramBinary glProgramBinary; +#endif namespace CustomContext { @@ -131,10 +134,12 @@ public: qDebug() << "Customcontext: binary shaders stored in:" << m_location; #endif +#ifndef QT_OPENGL_ES_3 glGetProgramBinary = (_glGetProgramBinary) eglGetProcAddress("glGetProgramBinaryOES"); glProgramBinary = (_glProgramBinary) eglGetProcAddress("glProgramBinaryOES"); Q_ASSERT(glGetProgramBinary && glProgramBinary); +#endif } static ProgramBinaryStore *self() { |