Re: [AD] DirectX fullscreen alt-tab |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 31 Oct 2012 23:51:26 +1100, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> Hi,
>
> In the attached program:
>
> AFAIK I'm following the guidelines for lost devices, but after
> alt-tabbing a few times it often gets into a state where the screen is
> no longer drawn. The log file shows a lot of
> "D3DERR_INVALIDCALL in reset" so I guess it wasn't reset properly.
For my own future reference:
The program was crashing on the DrawPrimitiveUP call in
d3d_flush_vertex_cache. Upgrading the nvidia drivers seemed to make
the crashes go away.
The remaining problem is that after alt-tabbing out, the program often
will not restore. The device Reset calls return D3DERR_INVALIDCALL.
Peter