On 18/07/07, Stefan Dösinger <[EMAIL PROTECTED]> wrote:
This code does not really have a home. For one part the device is in
charge of managing the gl fbos, on the other hand this is gl surface
specific code and should go into IWineD3DSurface::Release.

No, the surface release code shouldn't know about render targets,
FBOs, etc. (It's not really surface specific either, other than that
the pointers we're cleaning up happen to be surfaces.)
The device gets notified when resources of a certain type are
destroyed here, so it can do extra cleanup on it's internal
structures, so this is the correct place to do this kind of stuff.


Reply via email to