16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

Change size arguments type to GLsizeiptr

This commit is contained in:
docentYT
2026-05-11 23:41:43 +02:00
parent 6542021253
commit 4878afbffc
4 changed files with 10 additions and 10 deletions

View File

@@ -61,19 +61,19 @@ gl::buffer::~buffer()
glDeleteBuffers(1, *this);
}
void gl::buffer::allocate(targets target, int size, GLenum hint)
void gl::buffer::allocate(targets target, GLsizeiptr size, GLenum hint)
{
bind(target);
glBufferData(glenum_target(target), size, nullptr, hint);
}
void gl::buffer::upload(targets target, const void *data, int offset, int size)
void gl::buffer::upload(targets target, const void *data, int offset, GLsizeiptr size)
{
bind(target);
glBufferSubData(glenum_target(target), offset, size, data);
}
void gl::buffer::download(targets target, void *data, int offset, int size)
void gl::buffer::download(targets target, void *data, int offset, GLsizeiptr size)
{
bind(target);
if (GLAD_GL_VERSION_3_3)