1448d9
diff -up tigervnc-1.2.80-20130314svn5065/unix/xserver/hw/vnc/xvnc.cc.glx tigervnc-1.2.80-20130314svn5065/unix/xserver/hw/vnc/xvnc.cc
1448d9
--- tigervnc-1.2.80-20130314svn5065/unix/xserver/hw/vnc/xvnc.cc.glx	2013-02-19 13:51:29.000000000 +0000
1448d9
+++ tigervnc-1.2.80-20130314svn5065/unix/xserver/hw/vnc/xvnc.cc	2013-12-09 17:03:52.147179079 +0000
1448d9
@@ -1564,6 +1564,18 @@ static void vfbClientStateChange(Callbac
1448d9
   dispatchException &= ~DE_RESET;
1448d9
 }
1448d9
 
1448d9
+#if XORG >= 113
1448d9
+#ifdef GLXEXT
1448d9
+extern "C" void GlxExtensionInit(void);
1448d9
+
1448d9
+static ExtensionModule glxExt = {
1448d9
+    GlxExtensionInit,
1448d9
+    "GLX",
1448d9
+    &noGlxExtension
1448d9
+};
1448d9
+#endif
1448d9
+#endif
1448d9
+
1448d9
 void
1448d9
 InitOutput(ScreenInfo *screenInfo, int argc, char **argv)
1448d9
 {
1448d9
@@ -1573,6 +1585,13 @@ InitOutput(ScreenInfo *screenInfo, int a
1448d9
     int i;
1448d9
     int NumFormats = 0;
1448d9
 
1448d9
+#if XORG >= 113
1448d9
+#ifdef GLXEXT
1448d9
+    if (serverGeneration == 1)
1448d9
+        LoadExtension(&glxExt, TRUE);
1448d9
+#endif
1448d9
+#endif
1448d9
+
1448d9
     /* initialize pixmap formats */
1448d9
 
1448d9
     /* must have a pixmap depth to match every screen depth */