mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 05:40:35 +01:00
vfb: Initialize the GLX extension again.
This should fix a regression in the 1.13.0 release: commit5f5bbbe543removed a code path used by Xvfb and made it use the default one when initializing extensions. However, this meant the GLX extension was not initialized anymore since it is not part of the `staticExtensions' array. Since it is not possible to just add it to that array after commitaad428b8e2, adopt an approach similar to xwin's and xquartz's and initialize the extension from vfb's `InitOutput'. Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
e348e4afc5
commit
65642ccb78
1 changed files with 19 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ from The Open Group.
|
|||
#endif /* HAS_SHM */
|
||||
#include "dix.h"
|
||||
#include "miline.h"
|
||||
#include "glx_extinit.h"
|
||||
|
||||
#define VFB_DEFAULT_WIDTH 1280
|
||||
#define VFB_DEFAULT_HEIGHT 1024
|
||||
|
|
@ -885,12 +886,30 @@ vfbScreenInit(ScreenPtr pScreen, int argc, char **argv)
|
|||
|
||||
} /* end vfbScreenInit */
|
||||
|
||||
static const ExtensionModule vfbExtensions[] = {
|
||||
#ifdef GLXEXT
|
||||
{ GlxExtensionInit, "GLX", &noGlxExtension },
|
||||
#endif
|
||||
};
|
||||
|
||||
static
|
||||
void vfbExtensionInit(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(vfbExtensions); i++)
|
||||
LoadExtension(&vfbExtensions[i], TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
InitOutput(ScreenInfo * screenInfo, int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
int NumFormats = 0;
|
||||
|
||||
if (serverGeneration == 1)
|
||||
vfbExtensionInit();
|
||||
|
||||
/* initialize pixmap formats */
|
||||
|
||||
/* must have a pixmap depth to match every screen depth */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue