You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Gräßlin 8909f8780b [plugins/qpa] Call makeCurrent on the QOpenGLContext instead of the one in the platform context
Summary:
SharingPlatformContext::swapBuffers needs to make the context current.
For this is calls makeCurrent. Later on this tries to bind a fbo, which
checks calls into the current QOpenGLContext. As we called makeCurrent on
our own platform context Qt doesn't know that the context is current and
returns in the worst case a nullptr and crashes.

This change calls makeCurrent on the QOpenGLContext so that Qt also knows
that this context is current now. The QOpenGLContext calls makeCurrent on
the platform context, so what our code tried to do is still being done.

In addition the method context() in AbstractPlatformContext is renamed to
eglContext to no longer shadow the method in QPlatformContext.

Reviewers: #kwin, #plasma_on_wayland

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D2582
8 years ago
..
CMakeLists.txt [plugins/qpa] Add debug output for the KWin internal QPA plugin 8 years ago
abstractplatformcontext.cpp [plugins/qpa] Support SharingPlatformContext on the existing eglSurface and eglconfig 8 years ago
abstractplatformcontext.h [plugins/qpa] Call makeCurrent on the QOpenGLContext instead of the one in the platform context 8 years ago
backingstore.cpp
backingstore.h
integration.cpp [plugins/qpa] Support SharingPlatformContext on the existing eglSurface and eglconfig 8 years ago
integration.h Integrate QtVirtualKeyboard into KWin/Wayland 8 years ago
kwin.json
main.cpp Maintenance - fixing naming typos 9 years ago
nativeinterface.cpp [plugins/qpa] Add a roundtrip platform function 9 years ago
nativeinterface.h [plugins/qpa] Add a roundtrip platform function 9 years ago
platformcontextwayland.cpp [plugins/qpa] Call makeCurrent on the QOpenGLContext instead of the one in the platform context 8 years ago
platformcontextwayland.h
platformcursor.cpp [plugins/qpa] Implement a custom QPlatformCursor 9 years ago
platformcursor.h [plugins/qpa] Implement a custom QPlatformCursor 9 years ago
screen.cpp [plugins/qpa] Add support for QT_WAYLAND_FORCE_DPI env variable 8 years ago
screen.h [plugins/qpa] Add support for QT_WAYLAND_FORCE_DPI env variable 8 years ago
sharingplatformcontext.cpp [plugins/qpa] Call makeCurrent on the QOpenGLContext instead of the one in the platform context 8 years ago
sharingplatformcontext.h [plugins/qpa] Support SharingPlatformContext on the existing eglSurface and eglconfig 8 years ago
window.cpp [Wayland] Make it possible to have internal windows decorated 8 years ago
window.h Make Wayland::EGL optional again 9 years ago