-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Am 2016-02-05 um 20:31 schrieb Henri Verbeet:
dlls/wined3d/texture.c | 32 ++++++++++++++++++++++++++++++++
I think the overlay API would be much nicer in swapchains, either textures overlaying swapchains or swapchains overlaying swapchains. Unfortunately the fact that you can assign an overlay to an offscreenplain surface makes that very difficult. A solution similar to palettes where we do most tracking in ddraw and only forward "useful" setups to wined3d might be feasible.
Fwiw, the only non video player app that uses overlays that I know is settlers 3, which uses them to draw the mouse pointer if certain options are set.
(Feel free to completely ignore this concern, I don't think overlays should be a side quest for CSMT...)
On 7 February 2016 at 18:24, Stefan Dösinger stefandoesinger@gmail.com wrote:
I think the overlay API would be much nicer in swapchains, either textures overlaying swapchains or swapchains overlaying swapchains. Unfortunately the fact that you can assign an overlay to an offscreenplain surface makes that very difficult. A solution similar to palettes where we do most tracking in ddraw and only forward "useful" setups to wined3d might be feasible.
Yeah, it probably belongs in the swapchain in some form. I originally considered moving it entirely into ddraw, which shouldn't be too hard, but DXGI 1.3 seems to support some form of overlays, and there's also a small chance we'll want to use OpenGL overlays, so in the end I decided to just stick with what we currently have until we need something better.