From 408f3f44631f7d3b32e936129e380992c5396094 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Tue, 21 Jan 2014 16:41:33 +0100
Subject: wined3d: Don't delete the buffer in surface_cleanup.

---
 dlls/wined3d/surface.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 48de325..e5edd34 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -56,12 +56,6 @@ static void surface_cleanup(struct wined3d_surface *surface)
         context = context_acquire(surface->resource.device, NULL);
         gl_info = context->gl_info;
 
-        if (surface->resource.buffer_object)
-        {
-            TRACE("Deleting PBO %u.\n", surface->resource.buffer_object);
-            GL_EXTCALL(glDeleteBuffers(1, &surface->resource.buffer_object));
-        }
-
         if (surface->rb_multisample)
         {
             TRACE("Deleting multisample renderbuffer %u.\n", surface->rb_multisample);
-- 
2.2.1

