diff --git a/Graphics/Mesh.cpp b/Graphics/Mesh.cpp index 1f11cfc94191a9148c579596db000e3ac6967127..bfc6c39b553a961ae2f73c7de772130537d99ca9 100644 --- a/Graphics/Mesh.cpp +++ b/Graphics/Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: Mesh.cpp,v 1.128 2005-05-27 19:35:06 geuzaine Exp $ +// $Id: Mesh.cpp,v 1.129 2005-06-03 22:11:48 geuzaine Exp $ // // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // @@ -762,6 +762,8 @@ void _quadFace2(double *x, double *y, double *z, _triFace(x2[j3], y2[j3], z2[j3], x[i0], y[i0], z[i0], x2[j4], y2[j4], z2[j4]); } +// #include <GL/glext.h> + void Draw_Mesh_Array(VertexArray *va, int faces, int edges) { if(!va->num) @@ -775,6 +777,8 @@ void Draw_Mesh_Array(VertexArray *va, int faces, int edges) glEnableClientState(GL_COLOR_ARRAY); glEnableClientState(GL_NORMAL_ARRAY); + // glLockArraysEXT(0, va->num); // extension GL_EXT_compiled_vertex_array + if(va->type == 1){ glDisableClientState(GL_NORMAL_ARRAY); glDrawArrays(GL_POINTS, 0, va->type * va->num); @@ -806,6 +810,8 @@ void Draw_Mesh_Array(VertexArray *va, int faces, int edges) } } + // glUnlockArraysEXT(); // extension GL_EXT_compiled_vertex_array + glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_COLOR_ARRAY); glDisableClientState(GL_NORMAL_ARRAY);