mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Avoid BGR visuals with Qt5 on i915 (well, all) platforms. Explanation
is in the patch and PR. PR: 223638 Submitted by: Bengt Ahlgren Reported by: Jason W Bacon Reviewed by: Philipp Engel Approved by: tcberner (mentor, implicit)
This commit is contained in:
parent
e367d02af3
commit
f78253e28c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466833
2 changed files with 18 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
PORTNAME= gui
|
PORTNAME= gui
|
||||||
DISTVERSION= ${QT5_VERSION}
|
DISTVERSION= ${QT5_VERSION}
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= x11-toolkits graphics
|
CATEGORIES= x11-toolkits graphics
|
||||||
PKGNAMEPREFIX= qt5-
|
PKGNAMEPREFIX= qt5-
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
Avoid selecting BGR visuals. On Intel i915 systems, selecting one of
|
||||||
|
these results in red-blue swapping later in the graphics pipeline.
|
||||||
|
PR 223638 has an extensive discussion.
|
||||||
|
|
||||||
|
--- src/platformsupport/glxconvenience/qglxconvenience.cpp.orig 2018-01-16 06:53:43 UTC
|
||||||
|
+++ src/platformsupport/glxconvenience/qglxconvenience.cpp
|
||||||
|
@@ -220,6 +220,10 @@ GLXFBConfig qglx_findConfig(Display *dis
|
||||||
|
if (requestedAlpha && actualAlpha != requestedAlpha)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
+ // avoid BGR visuals due to bugs elsewhere
|
||||||
|
+ if ((visual->red_mask & 0x1) == 0x1)
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
return candidate;
|
||||||
|
}
|
||||||
|
} while (qglx_reduceFormat(&format));
|
Loading…
Add table
Reference in a new issue