StelQGLInterleavedArrayVertexBufferBackend.cpp   StelQGLInterleavedArrayVertexBufferBackend.cpp 
skipping to change at line 49 skipping to change at line 49
{ {
vertexBytes += attributeSize(this->attributes.attributes[att rib].type); vertexBytes += attributeSize(this->attributes.attributes[att rib].type);
} }
// Align to VERTEX_ALIGN // Align to VERTEX_ALIGN
vertexStride = (vertexBytes + VERTEX_ALIGN - 1) & ~(VERTEX_ALIGN - 1 ); vertexStride = (vertexBytes + VERTEX_ALIGN - 1) & ~(VERTEX_ALIGN - 1 );
vertices = static_cast<char*>(std::malloc(vertexCapacity * vertexStr ide)); vertices = static_cast<char*>(std::malloc(vertexCapacity * vertexStr ide));
} }
StelQGLInterleavedArrayVertexBufferBackend::~StelQGLInterleavedArrayVertexB ufferBackend() StelQGLInterleavedArrayVertexBufferBackend::~StelQGLInterleavedArrayVertexB ufferBackend()
{ {
delete vertices; std::free(vertices);
if(NULL != projectedPositions) if(NULL != projectedPositions)
{ {
std::free(projectedPositions); std::free(projectedPositions);
} }
} }
void StelQGLInterleavedArrayVertexBufferBackend::addVertex(const void* cons t vertexInPtr) void StelQGLInterleavedArrayVertexBufferBackend::addVertex(const void* cons t vertexInPtr)
{ {
//StelVertexBuffer enforces bounds, so we don't need to //StelVertexBuffer enforces bounds, so we don't need to
Q_ASSERT_X(vertexCount <= vertexCapacity, Q_FUNC_INFO, Q_ASSERT_X(vertexCount <= vertexCapacity, Q_FUNC_INFO,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/