Giter VIP home page Giter VIP logo

Comments (15)

ReuBird23 avatar ReuBird23 commented on June 4, 2024 1

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.

vadz avatar vadz commented on June 4, 2024

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.

ReuBird23 avatar ReuBird23 commented on June 4, 2024

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.

vadz avatar vadz commented on June 4, 2024

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.

ReuBird23 avatar ReuBird23 commented on June 4, 2024

I believe it was using EGL, how should i determine that?

from wxwidgets.

vadz avatar vadz commented on June 4, 2024

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.

ReuBird23 avatar ReuBird23 commented on June 4, 2024

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.

vadz avatar vadz commented on June 4, 2024

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.

dgud avatar dgud commented on June 4, 2024

@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.

vadz avatar vadz commented on June 4, 2024

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.

ReuBird23 avatar ReuBird23 commented on June 4, 2024

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.

dsa-t avatar dsa-t commented on June 4, 2024

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.

dsa-t avatar dsa-t commented on June 4, 2024

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.

ReuBird23 avatar ReuBird23 commented on June 4, 2024

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.

vadz avatar vadz commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.