mi: Fix infinite loop on regen when swrast_dri.so is missing

The swrast DRI provider gets pushed on the glx provider stack at every
server generation, so the stack turns into a circular list on regen.

X.Org bug#18388 <https://bugs.freedesktop.org/show_bug.cgi?id=18388>
(cherry picked from commit d3d6be4948)
This commit is contained in:
Julien Cristau 2008-11-07 18:36:00 +01:00 committed by Adam Jackson
parent 38e0a542fc
commit 8e1ee573b3

View File

@ -661,7 +661,8 @@ InitExtensions(argc, argv)
#endif
#ifdef GLXEXT
GlxPushProvider(&__glXDRISWRastProvider);
if (serverGeneration == 1)
GlxPushProvider(&__glXDRISWRastProvider);
if (!noGlxExtension) GlxExtensionInit();
#endif
}