3
From 8ca4233017e9f441303088e7054b6a7c4f171d80 Mon Sep 17 00:00:00 2001
4
From: Michael Vogt <mvo@ubuntu.com>
5
Date: Wed, 6 Jan 2010 14:40:34 +0100
6
Subject: [PATCH] * hw/xfree86/modes/xf86Crtc.c:
7
- only call gamma_set if its non NULL
10
hw/xfree86/modes/xf86Crtc.c | 2 +-
11
1 files changed, 1 insertions(+), 1 deletions(-)
13
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
14
index d015c6a..573fe96 100644
15
--- a/hw/xfree86/modes/xf86Crtc.c
16
+++ b/hw/xfree86/modes/xf86Crtc.c
17
@@ -354,7 +354,7 @@ xf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotati
20
/* Only upload when needed, to avoid unneeded delays. */
22
+ if (!crtc->active && crtc->funcs->gamma_set)
23
crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
24
crtc->gamma_blue, crtc->gamma_size);