fcfad74
From a368ab757edf36ed7bbda023673d28883ce11231 Mon Sep 17 00:00:00 2001
fcfad74
From: Dave Airlie <airlied@linux.ie>
fcfad74
Date: Tue, 22  Apr  2008  05:13:57  +0000
fcfad74
Subject: GLcore: make googleearth not crash the server on sw-rendering.
fcfad74
fcfad74
I don't think this is the 100% correct answer as I get log spam saying
fcfad74
(EE) DoSwapInterval: cx = 0x98b8998, GLX screen = 0x96dd780
fcfad74
(EE) AIGLX: cx->pGlxScreen->swapInterval == NULL
fcfad74
fcfad74
but thats better than X exiting in my book.
fcfad74
---
fcfad74
diff --git a/GL/glx/glxglcore.c b/GL/glx/glxglcore.c
fcfad74
index 1eac0eb..c8a2514 100644
fcfad74
--- a/GL/glx/glxglcore.c
fcfad74
+++ b/GL/glx/glxglcore.c
fcfad74
@@ -432,6 +432,7 @@ __glXMesaScreenProbe(ScreenPtr pScreen)
fcfad74
     screen->base.destroy        = __glXMesaScreenDestroy;
fcfad74
     screen->base.createContext  = __glXMesaScreenCreateContext;
fcfad74
     screen->base.createDrawable = __glXMesaScreenCreateDrawable;
fcfad74
+    screen->base.swapInterval  = NULL;
fcfad74
     screen->base.pScreen       = pScreen;
fcfad74
 
fcfad74
     return &screen->base;
fcfad74
--
fcfad74
cgit v0.7.2-37-g538c
fcfad74