dri2_glx: Terminate loader extension list outside #ifdef
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 18 May 2010 18:02:57 +0000 (14:02 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 19 May 2010 02:58:01 +0000 (22:58 -0400)
src/glx/dri2_glx.c

index eafb87c359730954e0949bc6fbd96ba50b0d6695..17352e9a5aea4fba1aab5e507d3ffcc6a49b33ec 100644 (file)
@@ -739,8 +739,8 @@ dri2CreateDisplay(Display * dpy)
 #ifdef __DRI_USE_INVALIDATE
    if (pdp->invalidateAvailable)
       pdp->loader_extensions[i++] = &dri2UseInvalidate.base;
-   pdp->loader_extensions[i++] = NULL;
 #endif
+   pdp->loader_extensions[i++] = NULL;
 
    return &pdp->base;
 }