I'm really new to OpenGL. I was programming on a x86 computer and my applications run fine, but recently i moved to a x64 machine, and it throws the following exception: "The type initializer for 'CsGL.OSLib' threw an exception." Please, help me deal with this issue?
Here is the part of code where the exception is thrown:
protected override void OnSizeChanged(EventArgs e)
Size s = Size;
GL.gluPerspective(45.0f, (double)s.Width / (double)s.Height, 0.1f, 100.0f);
It is thown on the first line: base.OnSizeChanged...
Log in to post a comment.