16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 11:19:19 +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

@@ -1,7 +1,7 @@
#include "stdafx.h"
#include "ubo.h"
gl::ubo::ubo(int size, int idx, GLenum hint)
gl::ubo::ubo(size_t size, int idx, GLenum hint)
{
allocate(buffer::UNIFORM_BUFFER, size, hint);
index = idx;
@@ -13,7 +13,7 @@ void gl::ubo::bind_uniform()
bind_base(buffer::UNIFORM_BUFFER, index);
}
void gl::ubo::update(const uint8_t *data, int offset, int size)
void gl::ubo::update(const uint8_t *data, int offset, GLsizeiptr size)
{
upload(buffer::UNIFORM_BUFFER, data, offset, size);
}