1. rude
  2. love


Alex Szpakowski  committed 673d0ea

Fixed VertexIndex::getElementSize

  • Participants
  • Parent commits 1b457f4
  • Branches default

Comments (0)

Files changed (2)

File src/modules/graphics/opengl/VertexBuffer.cpp

View file
 // VertexIndex
 size_t VertexIndex::maxSize = 0;
+size_t VertexIndex::elementSize = 0;
 std::list<size_t> VertexIndex::sizeRefs;
 VertexBuffer *VertexIndex::element_array = NULL;
 VertexIndex::VertexIndex(size_t size)
 	: size(size)
-	, elementSize(0)
 	// The upper limit is the maximum of GLuint divided by six (the number
 	// of indices per size) and divided by the size of GLuint. This guarantees

File src/modules/graphics/opengl/VertexBuffer.h

View file
 	size_t size;
 	// The size in bytes of an element in the element array.
-	size_t elementSize;
+	static size_t elementSize;
 	// The current VertexBuffer size. 0 means no VertexBuffer.
 	static size_t maxSize;
 	// The list of sizes. Needs to be kept sorted in ascending order.