xfree86/modes: Call xf86RotateRedisplay from xf86CrtcRotate

If a new rotate buffer was allocated. This makes sure the new buffer
has valid transformed contents when it starts being displayed.

Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Michel Dänzer 2019-11-22 17:51:22 +01:00 committed by Michel Dänzer
parent c66c548eab
commit 327df450ff

View File

@ -485,6 +485,9 @@ xf86CrtcRotate(xf86CrtcPtr crtc)
if (damage)
xf86CrtcDamageShadow(crtc);
else if (crtc->rotatedData && !crtc->rotatedPixmap)
/* Make sure the new rotate buffer has valid transformed contents */
xf86RotateRedisplay(pScreen);
/* All done */
return TRUE;