wined3d: Don't call surface_init_sysmem() on surfaces with a PBO.

This commit is contained in:
Henri Verbeet 2011-12-20 21:42:10 +01:00 committed by Alexandre Julliard
parent 9321ed7c39
commit b57d1e7c33
1 changed files with 2 additions and 1 deletions

View File

@ -1810,7 +1810,8 @@ static void surface_unload(struct wined3d_resource *resource)
* or the depth stencil into an FBO the texture or render buffer will be removed
* and all flags get lost
*/
surface_init_sysmem(surface);
if (!(surface->flags & SFLAG_PBO))
surface_init_sysmem(surface);
/* We also get here when the ddraw swapchain is destroyed, for example
* for a mode switch. In this case this surface won't necessarily be
* an implicit surface. We have to mark it lost so that the