Use v1.0 GL.ClearDepth(double) instead of v4.1 GL.ClearDepth(float).

This commit is contained in:
the_fiddler 2011-05-30 12:31:39 +00:00
parent 05df162c0c
commit 36349f667f

View file

@ -45,7 +45,7 @@ namespace Examples.Tutorial
Object = new Shapes.TorusKnot(256, 16, 0.2, 7,8, 1, true); Object = new Shapes.TorusKnot(256, 16, 0.2, 7,8, 1, true);
GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.DepthTest);
GL.ClearDepth(1.0f); GL.ClearDepth(1.0);
GL.DepthFunc(DepthFunction.Lequal); GL.DepthFunc(DepthFunction.Lequal);
GL.Enable(EnableCap.CullFace); GL.Enable(EnableCap.CullFace);