mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:44:36 +08:00
40 lines
843 B
Diff
40 lines
843 B
Diff
--- hw/kdrive/ephyr/ephyrinit.c 2013-03-14 19:07:41.904335711 +0100
|
|
+++ hw/kdrive/ephyr/ephyrinit.c.new 2013-03-14 19:07:33.024335444 +0100
|
|
@@ -28,6 +28,7 @@
|
|
#endif
|
|
#include "ephyr.h"
|
|
#include "ephyrlog.h"
|
|
+#include "glx_extinit.h"
|
|
|
|
extern Window EphyrPreExistingHostWin;
|
|
extern Bool EphyrWantGrayScale;
|
|
@@ -53,9 +54,28 @@
|
|
KdCardInfoAdd(&ephyrFuncs, 0);
|
|
}
|
|
|
|
+static const ExtensionModule ephyrExtensions[] = {
|
|
+#ifdef GLXEXT
|
|
+ { GlxExtensionInit, "GLX", &noGlxExtension },
|
|
+#endif
|
|
+};
|
|
+
|
|
+static
|
|
+void ephyrExtensionInit(void)
|
|
+{
|
|
+ int i;
|
|
+
|
|
+ for (i = 0; i < ARRAY_SIZE(ephyrExtensions); i++)
|
|
+ LoadExtension(&ephyrExtensions[i], TRUE);
|
|
+}
|
|
+
|
|
+
|
|
void
|
|
InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
|
{
|
|
+ if (serverGeneration == 1)
|
|
+ ephyrExtensionInit();
|
|
+
|
|
KdInitOutput(pScreenInfo, argc, argv);
|
|
}
|
|
|