diff options
| author | ccos89 <133320139+ccos89@users.noreply.github.com> | 2025-10-25 10:57:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-25 11:57:46 +0100 |
| commit | b10b9660004b3dfaf9e11a305d78f24955b089a4 (patch) | |
| tree | 908bfd5bdaefcbf790b41aa599fddd632696cf89 /src/render/OpenGL.cpp | |
| parent | da04afa44e7545771b08f8e0defd2cd1810f1613 (diff) | |
screencopy: fix missing XBGR2101010 format with screencopy_force_8b (#12125)
Adds missing DRM_FORMAT_XBGR2101010 to screencopy_force_8b that leads to
"no more input formats" Pipewire error for monitors set to 10-bit color
depth/where currentFormat is XBGR2101010.
Fixes implementation of #11623
Fixes hyprwm/xdg-desktop-portal-hyprland#270
Fixes hyprwm/xdg-desktop-portal-hyprland#102
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 436ba26c..90a8e679 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -3323,7 +3323,7 @@ uint32_t CHyprOpenGLImpl::getPreferredReadFormat(PHLMONITOR pMonitor) { auto fmt = pMonitor->m_output->state->state().drmFormat; - if (fmt == DRM_FORMAT_BGRA1010102 || fmt == DRM_FORMAT_ARGB2101010 || fmt == DRM_FORMAT_XRGB2101010 || fmt == DRM_FORMAT_BGRX1010102) + if (fmt == DRM_FORMAT_BGRA1010102 || fmt == DRM_FORMAT_ARGB2101010 || fmt == DRM_FORMAT_XRGB2101010 || fmt == DRM_FORMAT_BGRX1010102 || fmt == DRM_FORMAT_XBGR2101010) return DRM_FORMAT_XRGB8888; return fmt; |
