Commit 9c767924 authored by Keith Packard's avatar Keith Packard

[randr] don't try to compute crtc transform when no mode is set.

Dereferencing the NULL mode pointer would cause a crash. As these transform
matrices won't be used while the CRTC is disabled, just leave their values
parent 315b6d0a
......@@ -233,7 +233,7 @@ RRCrtcNotify (RRCrtcPtr crtc,
RRTransformCopy (&crtc->client_current_transform, transform);
RRCrtcChanged (crtc, TRUE);
if (crtc->changed)
if (crtc->changed && mode)
RRTransformCompute (x, y,
mode->mode.width, mode->mode.height,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment