Sign in to follow this  

System.InvalidOperationException on draw method

Recommended Posts

Hello All! I'm getting this exception ('System.InvalidOperationException' ) when trying to run the Manipulators example (from Ziggyware site), Running stops at the line when issueing mesh.Draw(SaveStateMode.SaveState); method. This also happens at far simpler projects, such as a new windows game, that is only drawing a simple triangle. Draw command fails.. I've managed to discover than commenting the line "effect.LightingEnabled = true" solved this.. but why ?? Can this be GPU related? i'm using a laptop with a GPU that is less than SM 2.0... Any ideas? Lior.

Share this post

Link to post
Share on other sites

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