diff options
author | vaxerski <[email protected]> | 2024-08-23 14:13:43 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-08-23 14:13:49 +0200 |
commit | 3b663f4afcecb1abc93a61d6448183c5978f5cd2 (patch) | |
tree | a4878c2265629443ce7d64cbd55ab5e92f677528 | |
parent | f634b9e61af7dae0ca70379bd207eea45bb417d1 (diff) | |
download | Hyprland-3b663f4afcecb1abc93a61d6448183c5978f5cd2.tar.gz Hyprland-3b663f4afcecb1abc93a61d6448183c5978f5cd2.zip |
screencopy: fixup 10-bit sharing via shm on nvidia
-rw-r--r-- | src/protocols/Screencopy.cpp | 2 | ||||
-rw-r--r-- | src/protocols/ToplevelExport.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index b25d9456..1559476b 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -238,7 +238,7 @@ bool CScreencopyFrame::copyShm() { g_pHyprRenderer->makeEGLCurrent(); CFramebuffer fb; - fb.alloc(box.w, box.h, g_pHyprRenderer->isNvidia() ? DRM_FORMAT_XBGR8888 : pMonitor->output->state->state().drmFormat); + fb.alloc(box.w, box.h, pMonitor->output->state->state().drmFormat); if (!g_pHyprRenderer->beginRender(pMonitor, fakeDamage, RENDER_MODE_FULL_FAKE, nullptr, &fb, true)) { LOGM(ERR, "Can't copy: failed to begin rendering"); diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp index 05e991d6..916f7395 100644 --- a/src/protocols/ToplevelExport.cpp +++ b/src/protocols/ToplevelExport.cpp @@ -245,7 +245,7 @@ bool CToplevelExportFrame::copyShm(timespec* now) { g_pHyprRenderer->makeEGLCurrent(); CFramebuffer outFB; - outFB.alloc(PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y, g_pHyprRenderer->isNvidia() ? DRM_FORMAT_XBGR8888 : PMONITOR->output->state->state().drmFormat); + outFB.alloc(PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y, PMONITOR->output->state->state().drmFormat); if (overlayCursor) { g_pPointerManager->lockSoftwareForMonitor(PMONITOR->self.lock()); |