change includes, minor simplification in intelDisplaySurface()
authorBrian <brian.paul@tungstengraphics.com>
Tue, 6 Nov 2007 00:10:12 +0000 (17:10 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 6 Nov 2007 00:10:12 +0000 (17:10 -0700)
src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c

index 8a35a71669cc52dd0858a8d1650ce30d0ae5349e..8e0f1113b827ec7b93e49619c4d10a5d5a92bdc7 100644 (file)
@@ -85,14 +85,14 @@ intelDisplaySurface(__DRIdrawablePrivate *dPriv,
                     struct pipe_surface *surf,
                     const drm_clip_rect_t *rect)
 {
+   struct intel_screen *intelScreen = intel_screen(dPriv->driScreenPriv);
    struct intel_context *intel;
-   const struct intel_screen *intelScreen = intel_screen(dPriv->driScreenPriv);
 
    DBG(SWAP, "%s\n", __FUNCTION__);
 
    assert(dPriv);
 
-   intel = intelScreenContext(dPriv->driScreenPriv->private);
+   intel = intelScreenContext(intelScreen);
    if (!intel)
       return;