Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 616672 Details for
Bug 711116
dev-qt/qtgui-5.13.2: Wrong colours of non-GL widgets when using OpenGL on big endian
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to fix the swizzle on big endian
glswizzle.patch (text/plain), 1.36 KB, created by
Marcus Comstedt
on 2020-02-29 21:38:31 UTC
(
hide
)
Description:
Proposed patch to fix the swizzle on big endian
Filename:
MIME Type:
Creator:
Marcus Comstedt
Created:
2020-02-29 21:38:31 UTC
Size:
1.36 KB
patch
obsolete
>--- qtbase-everywhere-src-5.13.2/src/gui/opengl/qopengltextureblitter.cpp.orig 2020-02-29 22:18:53.836334462 +0100 >+++ qtbase-everywhere-src-5.13.2/src/gui/opengl/qopengltextureblitter.cpp 2020-02-29 22:16:58.254126170 +0100 >@@ -116,7 +116,11 @@ > "void main() {" > " vec4 tmpFragColor = texture(textureSampler, uv);" > " tmpFragColor.a *= opacity;" >+#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN > " fragcolor = swizzle ? tmpFragColor.bgra : tmpFragColor;" >+#else >+ " fragcolor = swizzle ? tmpFragColor.gbar : tmpFragColor;" >+#endif > "}"; > > static const char vertex_shader[] = >@@ -138,7 +142,11 @@ > "void main() {" > " highp vec4 tmpFragColor = texture2D(textureSampler,uv);" > " tmpFragColor.a *= opacity;" >+#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN > " gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;" >+#else >+ " gl_FragColor = swizzle ? tmpFragColor.gbar : tmpFragColor;" >+#endif > "}"; > > static const char fragment_shader_external_oes[] = >@@ -150,7 +158,11 @@ > "void main() {" > " highp vec4 tmpFragColor = texture2D(textureSampler, uv);" > " tmpFragColor.a *= opacity;" >+#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN > " gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;" >+#else >+ " gl_FragColor = swizzle ? tmpFragColor.gbar : tmpFragColor;" >+#endif > "}"; > > static const GLfloat vertex_buffer_data[] = {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 711116
:
616670
| 616672 |
616674