1
0
Fork 0
mirror of https://github.com/hyprwm/Hyprland synced 2025-04-10 08:12:19 +02:00

screencopy: fix build with legacyrenderer

fixes 
This commit is contained in:
Vaxry 2024-11-05 09:59:03 +00:00
parent 88e9e03945
commit e3882b23d0

View file

@ -255,7 +255,7 @@ bool CScreencopyFrame::copyShm() {
#ifndef GLES2
glBindFramebuffer(GL_READ_FRAMEBUFFER, fb.getFBID());
#else
glBindFramebuffer(GL_FRAMEBUFFER, fb.m_iFb);
glBindFramebuffer(GL_FRAMEBUFFER, fb.getFBID());
#endif
const auto PFORMAT = FormatUtils::getPixelFormatFromDRM(shm.format);