Re: [AD] DirectX fullscreen alt-tab |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, 18 Nov 2012 18:20:28 +1100, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> 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.
In fact, it didn't. I put in a fix/workaround for it.
>
> The remaining problem is that after alt-tabbing out, the program often
> will not restore. The device Reset calls return D3DERR_INVALIDCALL.
Fixed: some textures were not released so Reset fails.
Peter