Reset client caps before rendering in case SDL changed them
This commit is contained in:
parent
37b9b6ed9e
commit
a931161923
1 changed files with 7 additions and 0 deletions
|
|
@ -313,6 +313,13 @@ void DrmRenderer::prepareToRender()
|
|||
SDL_GetError());
|
||||
}
|
||||
|
||||
// Set our DRM client caps again. SDL 3.4+ will disable these
|
||||
// when dropping master if it's using atomic itself.
|
||||
drmSetClientCap(m_DrmFd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
|
||||
if (m_PropSetter.isAtomic()) {
|
||||
drmSetClientCap(m_DrmFd, DRM_CLIENT_CAP_ATOMIC, 1);
|
||||
}
|
||||
|
||||
// Set the output rect to match the new CRTC size after modesetting
|
||||
m_OutputRect.x = m_OutputRect.y = 0;
|
||||
drmModeCrtc* crtc = drmModeGetCrtc(m_DrmFd, m_Crtc.objectId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue