Comments (15)
Downgrading the kwin package to 6.0.2 fixed the problem. Versions 6.0.3 and 6.0.3.1 have the problem.
from wxwidgets.
Sorry, I have absolutely no idea what could explain this, but I wonder if it's specific to EGL implementation or also happens when using GLX? Unfortunately testing this requires rebuilding wxWidgets with --disable-glcanvasegl
configure option or wxUSE_GLCANVAS_EGL=OFF
if using CMake.
from wxwidgets.
Yes, I recompiled wxWidgets with --disable-glcanvasegl
and ran them with export GDK_BACKEND=x11
which rendered correctly. In fact recompiling was not necessary, the archlinux packaged version of wxWidgets correctly renders when using x11.
from wxwidgets.
Thanks for testing! But now that we know it's EGL-specific, I can't help asking another question: does GLFW example work correctly when using EGL?
from wxwidgets.
I believe it was using EGL, how should i determine that?
from wxwidgets.
I believe it was using EGL, how should i determine that?
Not sure how to do it with GLFW. If it uses Wayland, it must be using EGL (GLX can't work in this case), does it?
from wxwidgets.
I used the xprop and xeyes tools to test, and the glfw program is indeed using Wayland/EGL.
https://superuser.com/questions/1484068/how-to-check-if-a-program-uses-wayland-or-x11-in-linux.
from wxwidgets.
Thanks again for testing!
Unfortunately I still don't know what's actually wrong here, my guess is that we are not setting some attributes correctly but unfortunately I don't have time to look at this further and any help would be welcome.
from wxwidgets.
@vadz Didn't you fix something with selecting the first "context" available which was only 4bits per color channel recently.
That could explain this, i.e. to small color space would cause banding I think.
(just scrolling by the mailing list)
from wxwidgets.
Oops, yes, indeed, thanks for the reminder, I hadn't thought that choosing a wrong mode could result in this, but it definitely could.
@ReuBird23 Can you please test the latest master or 3.2 with #24375 (which will soon be merged into it too and be part of 3.2.5)?
from wxwidgets.
I tested it, and it made no change.
However, I have just had the opportunity to test the problem on my desktop that I have been away from for a few weeks (I have been having the issues on my laptop). The banding problem didn't happen...until after I updated my system. The wxWidgets-gtk3 was already up to date beforehand, so some other update on my system within the last month has caused the problem. I will do some downgrading to try to find out which package it is.
from wxwidgets.
Try adding
WX_GL_MIN_RED, 8, WX_GL_MIN_GREEN, 8, WX_GL_MIN_BLUE, 8
to wxGLCanvas
attributes.
Looks like it uses RGB565 mode.
from wxwidgets.
And GLFW has special code to pick the config closest to RGB(A)888(8) by default:
https://github.com/glfw/glfw/blob/228e58262e18f2ee61799bd86d0be718b1e31f9f/src/window.c#L282-L289
https://github.com/glfw/glfw/blob/228e58262e18f2ee61799bd86d0be718b1e31f9f/src/context.c#L183
from wxwidgets.
Yes thank you, that works. I wonder what changed in the kwin update that meant it wasn't necessary before. Thanks for your help.
from wxwidgets.
Thanks for the hint, Alex!
I wonder if we should we select 8-bit colour channels by default too? It seems that if anybody really wants less, they would be selecting this explicitly anyhow...
If not, this can be just closed.
from wxwidgets.
Related Issues (20)
- most samples build failed in universal build: mnemonics.cpp and notifmsg had not been compiled HOT 4
- Creating a non-modal window from wxHtmlHelpController HOT 3
- [macOS] widgets sample crashes immediately HOT 2
- [macOS?] Sizers are not setting the size of windows correctly HOT 2
- [macOS] Alignment of a slider's current value looks strange HOT 1
- [macOS] Ugly drawing of slider's ticks HOT 4
- Calendar reports invalid date format when using ca_ES locale HOT 4
- [macOS] Wrong calculation of slider's vertical label positions (in case of a horizontal slider)
- [macOS] Slider value and value label do not match
- [regex] wxRegex::Compile will always popup a message box if the pattern was not valid HOT 1
- Documentation typo - wxListColumnFormat HOT 8
- wxGridBagSizer item clipping when vgap/hgap are different and some items span multiple rows/cols HOT 3
- regression: 3.2.5 kicad/gtk plot window is not shown correct. HOT 16
- `wxDialog` ignores the specified position with GTK3 HOT 4
- Memory leak in wxSearchCtrl with autocomplete HOT 8
- [macOS] wxRichTextCtrl doesn't position and show candidate of IME correctly on macOS HOT 2
- wxBitmapComboBox flickers on Windows.
- wxGrid should disable ime input on read-only cells HOT 8
- Unpredictable crash when assigning a toolbar to a frame on macOS 14 (Sonoma) HOT 8
- wxBitmapComboBox bitmaps are rendered at x4 size at x2 window scaling on wxGTK HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxwidgets.