mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-17 07:26:00 +01:00
screencopy: fixup 10-bit sharing via shm on nvidia
This commit is contained in:
parent
f634b9e61a
commit
3b663f4afc
2 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ bool CScreencopyFrame::copyShm() {
|
||||||
g_pHyprRenderer->makeEGLCurrent();
|
g_pHyprRenderer->makeEGLCurrent();
|
||||||
|
|
||||||
CFramebuffer fb;
|
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)) {
|
if (!g_pHyprRenderer->beginRender(pMonitor, fakeDamage, RENDER_MODE_FULL_FAKE, nullptr, &fb, true)) {
|
||||||
LOGM(ERR, "Can't copy: failed to begin rendering");
|
LOGM(ERR, "Can't copy: failed to begin rendering");
|
||||||
|
|
|
@ -245,7 +245,7 @@ bool CToplevelExportFrame::copyShm(timespec* now) {
|
||||||
g_pHyprRenderer->makeEGLCurrent();
|
g_pHyprRenderer->makeEGLCurrent();
|
||||||
|
|
||||||
CFramebuffer outFB;
|
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) {
|
if (overlayCursor) {
|
||||||
g_pPointerManager->lockSoftwareForMonitor(PMONITOR->self.lock());
|
g_pPointerManager->lockSoftwareForMonitor(PMONITOR->self.lock());
|
||||||
|
|
Loading…
Reference in a new issue