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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user