[vlc-commits] [Git][videolan/vlc][master] qt: enable custom geometry when MSAA samples is at least 2 in RoundImage

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Oct 20 15:55:23 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7366e61d by Fatih Uzunoglu at 2024-10-20T15:41:25+00:00
qt: enable custom geometry when MSAA samples is at least 2 in RoundImage

On Wayland, the samples number is 0 by default instead of -1 and custom
geometry demands MSAA for anti-aliasing.

Enable custom geometry only when the samples are greater than or equal to
2.

- - - - -


1 changed file:

- modules/gui/qt/widgets/native/roundimage.cpp


Changes:

=====================================
modules/gui/qt/widgets/native/roundimage.cpp
=====================================
@@ -619,7 +619,7 @@ void RoundImage::adjustQSGCustomGeometry(const QQuickWindow* const window)
         // This allows making the texture opaque, as long as
         // source image is also opaque, for optimization
         // purposes.
-        if (window->format().samples() != -1)
+        if (window->format().samples() >= 2)
             m_QSGCustomGeometry = true;
         // No need to regenerate as transparent part will not
         // matter. However, in order for the material to not



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7366e61dcb8b41bec3c7e901dd4baf9744019a45

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7366e61dcb8b41bec3c7e901dd4baf9744019a45
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list