• Stefan Dösinger's avatar
    dxgi/tests: Test nested SetFullscreenState from the same thread. · 61783105
    Stefan Dösinger authored
    I am still deliberately not testing after which message the swapchain
    state changes from the old state to the new until we find a game that
    depends on this.
    
    ddraw, d3d8 and d3d9 do not catch recursive SetDisplayMode or Reset()
    calls. They will recurse for about 16 times and then return library
    specific weird return values like 0xd0000510 (NTSTATUS, but
    nonexistent facility) or 0x88760868 (non-existent HRESULT facility). I
    suspect it aborts when the kernel-side message processing stack is
    exhausted. As such, an application depending on nested calls in those
    libraries would have to deliberately do it, but limit the amount of
    nesting to a non-zero amount.
    61783105
dxgi.c 340 KB