Am 03.01.2007 um 02:48 schrieb Phil Costin:
This patch enables the forced re-downloading of dirty GL surfaces.
It requires [1/2] WineD3D: Mark GL Surface Clean after Fresh Surface Download and is the first step toward supporting gamma-corrected (sRGB) texture sampling support.
Thanks to Stefan Dösinger for his advice in IRC during the implementation of these 2 patches. <surfacedownload.diff>
You will have to bind the surface's texture to gl to be able to download the surface. If the texture name in glDescription is 0 you don't have to download. Select a proper texture unit(e.g. 0) before binding and mark that sampler dirty to force drawprim to restore it later.