[2/3] WineD3D: Properly release client storage memory

Stefan Dösinger stefan at codeweavers.com
Mon Dec 14 17:02:49 CST 2009


Unfortunately there's no GL method to release the texture image, so instead create a dummy 1x1 RGB texture with no initialization data.

It is not enough to force a PreLoad after changing the memory, there might be a race condition that causes an exception between changing the memory and the texture update.

I also want to avoid deleting the entire texture name as this has implications on the container and FBOs the texture name is linked to. Just deleting and respecifying the image on next use is less invasive.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-WineD3D-Properly-release-client-storage-memory.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091215/7743fd10/attachment.txt>
-------------- next part --------------




More information about the wine-patches mailing list