minor reformatting tweaks

This commit is contained in:
Josh Holtrop 2015-06-11 19:42:16 -04:00
parent 4452a8c1ff
commit 60045cb593
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ namespace glcxx
~Buffer(); ~Buffer();
void create(GLenum target, GLenum usage, const void *ptr, size_t sz); void create(GLenum target, GLenum usage, const void * ptr, size_t size);
GLuint id() const { return m_id; } GLuint id() const { return m_id; }

View File

@ -16,7 +16,7 @@ namespace glcxx
} }
} }
void Buffer::create(GLenum target, GLenum usage, const void *ptr, size_t sz) void Buffer::create(GLenum target, GLenum usage, const void * ptr, size_t size)
{ {
m_target = target; m_target = target;
glGenBuffers(1, &m_id); glGenBuffers(1, &m_id);
@ -25,6 +25,6 @@ namespace glcxx
throw Error("Failed to allocate an OpenGL buffer"); throw Error("Failed to allocate an OpenGL buffer");
} }
bind(); bind();
glBufferData(target, sz, ptr, usage); glBufferData(target, size, ptr, usage);
} }
} }