correct spelling of align

This commit is contained in:
degasus 2013-02-02 19:39:26 +01:00
parent 0c7aa4ff4f
commit 6e0b0192a8

View File

@ -29,7 +29,7 @@ namespace OGL
{ {
static const u32 SYNC_POINTS = 16; static const u32 SYNC_POINTS = 16;
static const u32 ALGIN_PINNED_MEMORY = 4096; static const u32 ALIGN_PINNED_MEMORY = 4096;
StreamBuffer::StreamBuffer(u32 type, size_t size, StreamType uploadType) StreamBuffer::StreamBuffer(u32 type, size_t size, StreamType uploadType)
: m_uploadtype(uploadType), m_buffertype(type), m_size(size) : m_uploadtype(uploadType), m_buffertype(type), m_size(size)
@ -168,7 +168,7 @@ void StreamBuffer::Init()
for(u32 i=0; i<SYNC_POINTS; i++) for(u32 i=0; i<SYNC_POINTS; i++)
fences[i] = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); fences[i] = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
pointer = (u8*)AllocateAlignedMemory(m_size, ALGIN_PINNED_MEMORY); pointer = (u8*)AllocateAlignedMemory(m_size, ALIGN_PINNED_MEMORY );
glBindBuffer(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, m_buffer); glBindBuffer(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, m_buffer);
glBufferData(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, m_size, pointer, GL_STREAM_COPY); glBufferData(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, m_size, pointer, GL_STREAM_COPY);
glBindBuffer(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, 0); glBindBuffer(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, 0);