Diffusion Krita fe3821a9f1ce

Patch Qt on OSX for fixing the opengl qpainter engine

Authored by Nim on Sep 12 2016, 6:41 PM.

Description

Patch Qt on OSX for fixing the opengl qpainter engine

Summary:
QT Changes:
https://codereview.qt-project.org/#/c/166202
https://bugreports.qt.io/browse/QTBUG-33535

This change allows a user to paint on a QOpenGLWidget with a QPainter,
whenever an OpenGL3+ Core Profile format is used or enforced (such as
on macOS).

  • Core Profile shaders add that use modern keywords (in, out, etc.).
  • Paint engine binds a single VAO and two VBOs.
  • Vertex and texture data is uploaded to VBO instead of directly to the GPU.

Krita Changes:

  • Request OpenGL 3.2 Core Profile
  • Draw our canvas using VAO's if possible
  • Homogenised shaders with appropriate versions
  • Shader loading happens outside of canvas
  • Duplicate shader loading code removed
  • Rename supportsGLSL13
  • Added Qt patch for ext_qt, see above

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

Details

Committed
NimSep 12 2016, 7:08 PM
Differential Revision
D2755: Patch Qt on OSX for fixing the opengl qpainter engine
Parents
R37:03c41962a1f9: Added exception handling to loading display shader
Branches
Unknown
Tags
Unknown