Shuffle OpenGL code to ensure a context exists

Authored by abrahams.

Description

Shuffle OpenGL code to ensure a context exists

Summary:
The existing code made several glDoSomething() calls before
KisOpenGLCanvas had entered initializeGL() for the first time.

This moves calls made to create sync objects and compile shaders into
initializeGL. KisOpenGL has two-part initialization step; the first part
is called in main(), the second part is called inside KisOpenGLCanvas2.

Reviewers: dkazakov, rempt

Maniphest Tasks: T360

Differential Revision: https://phabricator.kde.org/D234

Details

Committed
abrahamsAug 4 2015, 11:43 PM
Differential Revision
D234: Shuffle OpenGL code to ensure a context exists
Parents
R8:e62445c952a2: Replace homebrew extension matcher with Qt Builtin
Branches
Unknown
Tags
Unknown