Re: [AD] DirectX fullscreen alt-tab |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
If restore does not work, device must be recreated. IIRC
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
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |