mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
make xgl code at least build against latest glitz.
This commit is contained in:
parent
6e2086395d
commit
d822bc1596
5 changed files with 7 additions and 43 deletions
|
|
@ -134,7 +134,7 @@ xglSetVisualTypesAndMasks (ScreenInfo *pScreenInfo,
|
|||
pPixelFormat = xglFindPixelFormat (format, visuals);
|
||||
if (pPixelFormat)
|
||||
{
|
||||
if (visuals && format->types.window)
|
||||
if (visuals)
|
||||
{
|
||||
xglVisuals = xrealloc (xglVisuals,
|
||||
(nxglVisuals + 1) * sizeof (xglVisualRec));
|
||||
|
|
@ -148,20 +148,6 @@ xglSetVisualTypesAndMasks (ScreenInfo *pScreenInfo,
|
|||
}
|
||||
}
|
||||
|
||||
if (format->types.pbuffer)
|
||||
{
|
||||
xglPbufferVisuals =
|
||||
xrealloc (xglPbufferVisuals,
|
||||
(nxglPbufferVisuals + 1) * sizeof (xglVisualRec));
|
||||
|
||||
if (xglPbufferVisuals)
|
||||
{
|
||||
xglPbufferVisuals[nxglPbufferVisuals].format = format;
|
||||
xglPbufferVisuals[nxglPbufferVisuals].pPixel = NULL;
|
||||
xglPbufferVisuals[nxglPbufferVisuals].visuals = 0;
|
||||
nxglPbufferVisuals++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue