Always trigger drmModeSetCrtc
This commit is contained in:
parent
866dbee8cb
commit
ed6d944810
@ -102,8 +102,6 @@ namespace
|
||||
if (!initialized)
|
||||
return;
|
||||
|
||||
/* Avoid a modeswitch if possible */
|
||||
if (drmNode.mode != &drmNode.originalCrtc->mode)
|
||||
drmModeSetCrtc(drmNode.fileDescriptor,
|
||||
drmNode.originalCrtc->crtc_id,
|
||||
drmNode.originalCrtc->buffer_id,
|
||||
@ -112,8 +110,6 @@ namespace
|
||||
&drmNode.connectorId,
|
||||
1,
|
||||
&drmNode.originalCrtc->mode);
|
||||
else if (getenv("SFML_DRM_DEBUG"))
|
||||
printf("DRM keeping the same mode since using the original one\n");
|
||||
|
||||
drmModeFreeConnector(drmNode.savedConnector);
|
||||
drmModeFreeEncoder(drmNode.savedEncoder);
|
||||
|
Loading…
Reference in New Issue
Block a user