Ticket #46632: patch-src-core-renderer-StelQGLInterleavedArrayVertexBufferBackend.cpp.diff
File patch-src-core-renderer-StelQGLInterleavedArrayVertexBufferBackend.cpp.diff, 1.0 KB (added by Schamschula (Marius Schamschula), 10 years ago) |
---|
-
src/core/renderer/StelQGLInterleavedArrayVertexBufferBackend.cpp
old new 47 47 48 48 StelQGLInterleavedArrayVertexBufferBackend::~StelQGLInterleavedArrayVertexBufferBackend() 49 49 { 50 std::free(vertices);50 ::free(vertices); 51 51 if(NULL != projectedPositions) 52 52 { 53 53 ::free(projectedPositions); … … 66 66 vertices = static_cast<char*>(::realloc(vertices, vertexCapacity * vertexStride)); 67 67 } 68 68 69 std::memcpy(vertices + vertexCount * vertexStride, vertexInPtr, vertexBytes);69 ::memcpy(vertices + vertexCount * vertexStride, vertexInPtr, vertexBytes); 70 70 ++vertexCount; 71 71 } 72 72 73 73 void StelQGLInterleavedArrayVertexBufferBackend::getVertex 74 74 (const int index, void* const vertexOutPtr) const 75 75 { 76 std::memcpy(vertexOutPtr, vertices + index * vertexStride, vertexBytes);76 ::memcpy(vertexOutPtr, vertices + index * vertexStride, vertexBytes); 77 77 } 78 78 79 79 void StelQGLInterleavedArrayVertexBufferBackend::