mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 20:21:54 -07:00
opengl: fix swapped rgb drm formats
This commit is contained in:
@@ -2070,9 +2070,9 @@ uint32_t CHyprOpenGLImpl::getPreferredReadFormat(CMonitor* pMonitor) {
|
|||||||
return DRM_FORMAT_XRGB8888;
|
return DRM_FORMAT_XRGB8888;
|
||||||
|
|
||||||
if (pMonitor->drmFormat == DRM_FORMAT_XRGB8888)
|
if (pMonitor->drmFormat == DRM_FORMAT_XRGB8888)
|
||||||
return DRM_FORMAT_XRGB8888;
|
|
||||||
if (pMonitor->drmFormat == DRM_FORMAT_XBGR8888)
|
|
||||||
return DRM_FORMAT_XBGR8888;
|
return DRM_FORMAT_XBGR8888;
|
||||||
|
if (pMonitor->drmFormat == DRM_FORMAT_XBGR8888)
|
||||||
|
return DRM_FORMAT_XRGB8888;
|
||||||
if (pMonitor->drmFormat == DRM_FORMAT_XRGB2101010 || pMonitor->drmFormat == DRM_FORMAT_XBGR2101010)
|
if (pMonitor->drmFormat == DRM_FORMAT_XRGB2101010 || pMonitor->drmFormat == DRM_FORMAT_XBGR2101010)
|
||||||
return DRM_FORMAT_XBGR2101010;
|
return DRM_FORMAT_XBGR2101010;
|
||||||
return DRM_FORMAT_INVALID;
|
return DRM_FORMAT_INVALID;
|
||||||
|
Reference in New Issue
Block a user