~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to glx/glxext.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <registry.h>
40
40
#include "privates.h"
41
41
#include <os.h>
42
 
#include "g_disptab.h"
43
42
#include "unpack.h"
44
43
#include "glxutil.h"
45
44
#include "glxext.h"
58
57
*/
59
58
RESTYPE __glXContextRes;
60
59
RESTYPE __glXDrawableRes;
61
 
RESTYPE __glXSwapBarrierRes;
62
60
 
63
61
/*
64
62
** Reply for most singles.
228
226
    return GL_TRUE;
229
227
}
230
228
 
231
 
extern RESTYPE __glXSwapBarrierRes;
232
 
 
233
 
static int SwapBarrierGone(int screen, XID drawable)
234
 
{
235
 
    __GLXscreen *pGlxScreen = glxGetScreen(screenInfo.screens[screen]);
236
 
 
237
 
    if (pGlxScreen->swapBarrierFuncs) {
238
 
        pGlxScreen->swapBarrierFuncs->bindSwapBarrierFunc(screen, drawable, 0);
239
 
    }
240
 
    FreeResourceByType(drawable, __glXSwapBarrierRes, FALSE);
241
 
    return True;
242
 
}
243
 
 
244
229
/************************************************************************/
245
230
 
246
231
/*
358
343
                                            "GLXContext");
359
344
    __glXDrawableRes = CreateNewResourceType((DeleteType)DrawableGone,
360
345
                                             "GLXDrawable");
361
 
    __glXSwapBarrierRes = CreateNewResourceType((DeleteType)SwapBarrierGone,
362
 
                                                "GLXSwapBarrier");
363
 
    if (!__glXContextRes || !__glXDrawableRes || !__glXSwapBarrierRes)
 
346
    if (!__glXContextRes || !__glXDrawableRes)
364
347
        return;
365
348
 
366
349
    if (!dixRegisterPrivateKey(&glxClientPrivateKeyRec, PRIVATE_CLIENT, sizeof (__GLXclientState)))