Do not use deprecated methods.
This commit is contained in:
parent
3c2c07361a
commit
7c5d4fab58
3 changed files with 10 additions and 10 deletions
|
@ -57,8 +57,8 @@ namespace Examples.Tutorial
|
|||
GL.Hint(HintTarget.PointSmoothHint, HintMode.Nicest);
|
||||
|
||||
// Setup VBO state
|
||||
GL.EnableClientState(EnableCap.ColorArray);
|
||||
GL.EnableClientState(EnableCap.VertexArray);
|
||||
GL.EnableClientState(ArrayCap.ColorArray);
|
||||
GL.EnableClientState(ArrayCap.VertexArray);
|
||||
|
||||
GL.GenBuffers(1, out VBOHandle);
|
||||
|
||||
|
|
|
@ -730,9 +730,9 @@ namespace Examples.Tutorial
|
|||
//GL.Arb.DrawArraysInstanced(BeginMode.Triangles, 0, cubeData.Length/8, 1);
|
||||
GL.DrawArrays(BeginMode.Triangles, 0, cubeData.Length / (vboCubeStride / sizeof(float)));
|
||||
|
||||
GL.DisableClientState(EnableCap.VertexArray);
|
||||
GL.DisableClientState(EnableCap.NormalArray);
|
||||
GL.DisableClientState(EnableCap.TextureCoordArray);
|
||||
GL.DisableClientState(ArrayCap.VertexArray);
|
||||
GL.DisableClientState(ArrayCap.NormalArray);
|
||||
GL.DisableClientState(ArrayCap.TextureCoordArray);
|
||||
}
|
||||
|
||||
void renderSphereVBO()
|
||||
|
@ -753,9 +753,9 @@ namespace Examples.Tutorial
|
|||
//GL.Arb.DrawArraysInstanced(BeginMode.Triangles, 0, cubeData.Length/8, 1);
|
||||
//GL.DrawArrays(BeginMode.Triangles, 0, sphereData.Length / (vboSphereStride / sizeof(float)));
|
||||
|
||||
GL.DisableClientState(EnableCap.VertexArray);
|
||||
GL.DisableClientState(EnableCap.NormalArray);
|
||||
GL.DisableClientState(EnableCap.TextureCoordArray);
|
||||
GL.DisableClientState(ArrayCap.VertexArray);
|
||||
GL.DisableClientState(ArrayCap.NormalArray);
|
||||
GL.DisableClientState(ArrayCap.TextureCoordArray);
|
||||
}
|
||||
|
||||
void renderCubemap()
|
||||
|
|
|
@ -261,8 +261,8 @@ namespace Examples.Tutorial
|
|||
|
||||
//GL.DrawArrays(GL.Enums.BeginMode.POINTS, 0, shape.Vertices.Length);
|
||||
|
||||
GL.DisableClientState(EnableCap.VertexArray);
|
||||
GL.DisableClientState(EnableCap.ColorArray);
|
||||
GL.DisableClientState(ArrayCap.VertexArray);
|
||||
GL.DisableClientState(ArrayCap.ColorArray);
|
||||
|
||||
|
||||
//int error = GL.GetError();
|
||||
|
|
Loading…
Reference in a new issue