hw/xwin: Only add GLX extension once.
Using of LoadExtension() to add GLX onto to the end of the list of extensions on every server regeneration leads to hilarious consequences (i.e. crashing) after the first regeneration :-) Possibly xf86ExtensionInit() and QuartzExtensionInit() need a similar fix. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
7ceb854812
commit
25741b1aa3
|
@ -164,7 +164,7 @@ void XwinExtensionInit(void)
|
|||
int i;
|
||||
|
||||
#ifdef XWIN_GLX_WINDOWS
|
||||
if ((g_fNativeGl) && (serverGeneration == 1)) {
|
||||
if (g_fNativeGl) {
|
||||
/* install the native GL provider */
|
||||
glxWinPushNativeProvider();
|
||||
}
|
||||
|
@ -901,7 +901,8 @@ InitOutput(ScreenInfo * screenInfo, int argc, char *argv[])
|
|||
{
|
||||
int i;
|
||||
|
||||
XwinExtensionInit();
|
||||
if (serverGeneration == 1)
|
||||
XwinExtensionInit();
|
||||
|
||||
/* Log the command line */
|
||||
winLogCommandLine(argc, argv);
|
||||
|
|
Loading…
Reference in New Issue
Block a user