wined3d: Don't call surface_init_sysmem() on surfaces with a PBO.
This commit is contained in:
parent
9321ed7c39
commit
b57d1e7c33
|
@ -1810,6 +1810,7 @@ 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
|
||||
*/
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue