intel_winsys: remove leftover code
authorJerome Glisse <glisse@freedesktop.org>
Fri, 8 Feb 2008 17:47:25 +0000 (18:47 +0100)
committerJohn Doe <glisse@freedesktop.org>
Fri, 8 Feb 2008 17:47:25 +0000 (18:47 +0100)
src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c

index 910c0d2cc5ecc07f0fdf29068e6222ea9f12285e..789a386500a9f86f0bfa1530a1ca6961b9292fe2 100644 (file)
@@ -224,11 +224,6 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
    if(!surf->buffer)
       return -1;
 
-   if(ret) {
-      pipe_buffer_reference(winsys, &surf->buffer, NULL);
-      return ret;
-   }
-   
    return 0;
 }