protected VertexBatch(int bufferSize, int maxBuffers) { // Vertex buffers of size 0 don't make any sense. Let's not blindly hope for good behavior of OpenGL. Trace.Assert(bufferSize > 0); Size = bufferSize; this.maxBuffers = maxBuffers; AddAction = Add; GLWrapper.RegisterVertexBatch(this); }