commit 61cff3dd8633be10ecea0894e802302cb65ff384 Author: Gary van der Merwe Date: Fri Jun 1 12:01:00 2012 +0200 dmx: Fix seg fault when using glxproxy. diff --git a/hw/dmx/glxProxy/glxscreens.c b/hw/dmx/glxProxy/glxscreens.c index f725bd1..80fc082 100644 --- a/hw/dmx/glxProxy/glxscreens.c +++ b/hw/dmx/glxProxy/glxscreens.c @@ -225,6 +225,10 @@ __glXScreenInit(GLint numscreens) DMXScreenInfo *dmxScreen0 = &dmxScreens[0]; __glXNumActiveScreens = numscreens; + MAXSCREENSALLOC(__glXActiveScreens); + if (!__glXActiveScreens) + return False; + CalcServerVersionAndExtensions();