simplify intelSwapBuffers()
authorBrian <brian.paul@tungstengraphics.com>
Fri, 2 Nov 2007 18:31:56 +0000 (12:31 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 15:04:47 +0000 (08:04 -0700)
src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c

index 1deb138adf8b360887b2c4d09e27c374160e017a..ceebc1049664a4b6d2992af74b9eea577da819c4 100644 (file)
@@ -239,26 +239,18 @@ intelSwapBuffers(__DRIdrawablePrivate * dPriv)
 {
    if (dPriv->driContextPriv && dPriv->driContextPriv->driverPrivate) {
       GET_CURRENT_CONTEXT(ctx);
-      struct intel_context *intel;
 
       if (ctx == NULL)
         return;
 
-      intel = intel_context(ctx);
-
       if (ctx->Visual.doubleBufferMode) {
-        GLboolean missed_target;
         struct intel_framebuffer *intel_fb = dPriv->driverPrivate;
-        int64_t ust;
+         struct pipe_surface *back_surf
+            = get_color_surface(intel_fb, BUFFER_BACK_LEFT);
 
         _mesa_notifySwapBuffers(ctx);  /* flush pending rendering comands */
 
-         {
-            struct pipe_surface *back_surf
-               = get_color_surface(intel_fb, BUFFER_BACK_LEFT);
-            intelDisplayBuffer(dPriv, back_surf, NULL);
-         }
-
+         intelDisplayBuffer(dPriv, back_surf, NULL);
       }
    }
    else {