WineD3D: Don't create a pbo for system memory surfaces

Roderick Colenbrander thunderbird2k at gmx.net
Sat Sep 15 15:02:30 CDT 2007


Hi,

The WineD3D function UpdateSurface method wasn't aware of PBOs yet which 
caused a regression (bug 9666). The source surface we were passing to it had 
a pbo attached to it. In case of a PBO allocatedMemory is only available when 
the memory is locked which isn't the case when UpdateSurface is called.

The behavior that matches D3D the most is to not create a pbo for system 
memory surfaces. So that is what this patch does. Note that this patch might 
depend on Stefan his two PBO patches. (Those patches are good)

Regards,
Roderick Colenbrander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Don-t-create-a-PBO-for-system-memory-surfaces.-This.patch
Type: text/x-diff
Size: 1469 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070915/81b21b70/attachment.patch 


More information about the wine-patches mailing list