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

reformat: parameters can be made const

This commit is contained in:
jerrrrycho
2026-07-04 07:08:14 +02:00
parent 6fd1d6715b
commit 220689a5e3
121 changed files with 1380 additions and 1352 deletions

View File

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