[4/6] wined3d: Bind the surface texture in LoadLocation()

H. Verbeet hverbeet at gmail.com
Wed Jan 2 12:52:56 CST 2008


surface_upload_data() and surface_allocate_surface() need the correct
texture to be bound before being called. Most of the time this happens
to be true because PreLoad was called in some earlier code, but in
combination with FBOs that's not necessarily true. This patch
explicitly binds the texture in LoadLocation() and adds some comments
to surface_download_data(), surface_upload_data() and
surface_allocate_surface().

Changelog:
  - Bind the surface texture in LoadLocation()
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 04-wined3d_alloc_surface.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080102/ed7be5cf/attachment-0001.txt 


More information about the wine-patches mailing list