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  
    4747
    4848StelQGLInterleavedArrayVertexBufferBackend::~StelQGLInterleavedArrayVertexBufferBackend()
    4949{
    50         std::free(vertices);
     50        ::free(vertices);
    5151        if(NULL != projectedPositions)
    5252        {
    5353                ::free(projectedPositions);
     
    6666                vertices = static_cast<char*>(::realloc(vertices, vertexCapacity * vertexStride));
    6767        }
    6868
    69         std::memcpy(vertices + vertexCount * vertexStride, vertexInPtr, vertexBytes);
     69        ::memcpy(vertices + vertexCount * vertexStride, vertexInPtr, vertexBytes);
    7070        ++vertexCount;
    7171}
    7272
    7373void StelQGLInterleavedArrayVertexBufferBackend::getVertex
    7474        (const int index, void* const vertexOutPtr) const
    7575{
    76         std::memcpy(vertexOutPtr, vertices + index * vertexStride, vertexBytes);
     76        ::memcpy(vertexOutPtr, vertices + index * vertexStride, vertexBytes);
    7777}
    7878
    7979void StelQGLInterleavedArrayVertexBufferBackend::