diff options
author | Michael Brasser <mbrasser@ford.com> | 2019-06-04 14:42:31 -0500 |
---|---|---|
committer | Michael Brasser <mbrasser@ford.com> | 2019-07-25 01:49:48 -0500 |
commit | 65cdd0f36678a6b77caf9cf0007ad44c51f7f7af (patch) | |
tree | 24d7902b1dafc2b4af9044cde36bf1804f74b687 /src/gui/opengl/qopenglprogrambinarycache_p.h | |
parent | e4c1feae5c0bec21e24edbf5acacd248dd121634 (diff) |
Enable shader cache for ES2 when GL_OES_get_program_binary is present
Change-Id: I4fb71471a7dd22441def1eb837857d245c3e3c5a
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/opengl/qopenglprogrambinarycache_p.h')
-rw-r--r-- | src/gui/opengl/qopenglprogrambinarycache_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglprogrambinarycache_p.h b/src/gui/opengl/qopenglprogrambinarycache_p.h index a0e1f91e25..9fade08e66 100644 --- a/src/gui/opengl/qopenglprogrambinarycache_p.h +++ b/src/gui/opengl/qopenglprogrambinarycache_p.h @@ -93,6 +93,12 @@ private: uint format; }; QCache<QByteArray, MemCacheEntry> m_memCache; +#if defined(QT_OPENGL_ES_2) + void (QOPENGLF_APIENTRYP programBinaryOES)(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length); + void (QOPENGLF_APIENTRYP getProgramBinaryOES)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary); + void initializeProgramBinaryOES(QOpenGLContext *context); + bool m_programBinaryOESInitialized = false; +#endif }; QT_END_NAMESPACE |