xwayland: Initialise values in xwlVidModeGetGamma()

ProcVidModeGetGamma() relies on GetGamma() to initialise values if it
returns TRUE. Without this, we're sending uninitialised values to
clients.

Fixes: xorg/xserver#1040
This commit is contained in:
SimonP 2020-06-09 13:26:48 +02:00 committed by Michel Dänzer
parent d35f68336b
commit 6748a40941
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ static Bool
xwlVidModeGetGamma(ScreenPtr pScreen, float *red, float *green, float *blue)
{
/* Unsupported for now, but pretend it works */
*red = *green = *blue = 1.0f;
return TRUE;
}