[2/2] wined3d: Set the surface location to SFLAG_INSYSMEM for depth stencils on Reset

H. Verbeet hverbeet at gmail.com
Mon Jun 2 14:12:54 CDT 2008


This fixes a rather major regression when using FBOs for offscreen
rendering. Since we destroy the GL texture associated with the
surface, and INDRAWABLE and INTEXTURE are the same for offscreen
targets when using FBO ORM, the texture would never get recreated for
the depth stencil. Depth stencils are special in this regard since
they can switch between being onscreen and offscreen, for the other
implicit surfaces this isn't an issue. This should also fix bug 12794.
(This bug does expose issues with the surface management code, but I
don't think those are fixable before 1.0)

Changelog:
  - Set the surface location to SFLAG_INSYSMEM for depth stencils on Reset
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 02-wined3d_ds_reset.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080602/62c7c73e/attachment.txt 


More information about the wine-patches mailing list