mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
reformat: parameters can be made const
This commit is contained in:
2
gl/ubo.h
2
gl/ubo.h
@@ -27,7 +27,7 @@ namespace gl
|
||||
void bind_uniform();
|
||||
|
||||
void update(const uint8_t *data, int offset, GLsizeiptr size);
|
||||
template <typename T> void update(const T &data, size_t offset = 0)
|
||||
template <typename T> void update(const T &data, const size_t offset = 0)
|
||||
{
|
||||
update(reinterpret_cast<const uint8_t*>(&data), offset, sizeof(data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user