Sign in to follow this  

Problem switching to Fullscreen [ERR_INVALIDCALL]

This topic is 4374 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone. I finally managed to set up my terrain engine and render from a mesh. The problem is, that when i try to switch into Fullscreen Mode via SampleFramework.ToggleFullSCreen() i get an invalidcall error. I had this before and fixed it by disposing the sprite resources in the OnLostDevice Callback. No i do the same for my terrain object, but the failure remains.
public void Terrain::Dispose() 
	{
		if ( m_vb != null )
		{
			m_vb.Dispose();
			m_vb = null;
		}
		if ( m_ib != null )
		{
			m_ib.Dispose();
			m_ib = null;
		}
		if ( m_texture != null )
		{
			m_texture.Dispose();
			m_texture = null;
		}
		
		if(m_verts!=null)
			m_verts=null;
		if(m_indices!=null)
			m_indices=null;
		if(m_height!=null)
			m_height=null;
		
		if(mesh!=null)
		{
			mesh.Dispose();
			mesh=null;
		}
	}
Does anybode know what else i have to remind when Losing and resetting a device? Thank you very much in advance Nukleon

Share this post


Link to post
Share on other sites

This topic is 4374 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this