Bug 507714

Summary: Qt5 macOS: Text Properties docker rendering broken
Product: [Applications] krita Reporter: Freya Lupen <penguinflyer2222>
Component: DockersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ghevan
Priority: NOR Keywords: regression
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: surface preview on M1 arm

Description Freya Lupen 2025-07-31 21:00:01 UTC
On Krita 5.3.0-prealpha on macOS, the Text Properties docker shows a flipped and red-blue swapped version of the Krita window. It's still possible to interact with its widgets such as the font size spinbox, but they are not visible. A warning is logged:
> qt.qpa.openglcontext: Could not create NSOpenGLContext with shared context, falling back to unshared context.
This is a regression of commit 54cc96ef, which changed the surface format of the widget, which breaks the OpenGL context sharing.
This issue doesn't happen on Qt6 builds, and seems to be macOS-specific.

Version: Krita 5.3.0-prealpha-8d08b0bed
Comment 1 Bug Janitor Service 2025-08-05 00:36:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2438
Comment 2 vanyossi 2025-08-05 00:37:39 UTC
Created attachment 183794 [details]
surface preview on M1 arm

on M1 the surface get completely broken. a made a quick MR to fix it until we have a proper fix.
Comment 3 vanyossi 2025-08-05 17:35:29 UTC
Git commit 18f10ffe3f39ade1f6969737192865eebf7eb186 by Ivan Yossi.
Committed on 05/08/2025 at 17:31.
Pushed by ivany into branch 'master'.

Don't add surface format on macOS Qt5

M  +2    -0    plugins/dockers/textproperties/TextPropertiesDock.cpp

https://invent.kde.org/graphics/krita/-/commit/18f10ffe3f39ade1f6969737192865eebf7eb186