mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 06:05:59 +01:00
opengl: fix swapped rgb drm formats
This commit is contained in:
parent
9c09f2a847
commit
6e8b9ef7d8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue