aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/gamma.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/servers/gamma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/servers/gamma.c b/src/servers/gamma.c
index 8f2df15..17105d4 100644
--- a/src/servers/gamma.c
+++ b/src/servers/gamma.c
@@ -356,6 +356,8 @@ void restore_gamma(void)
{
if (outputs[i].supported == LIBGAMMA_NO)
continue;
+ if (outputs[i].saved_ramps.u8.red == NULL)
+ continue;
switch (outputs[i].depth)
{