16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 06:39: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

@@ -12,12 +12,12 @@ gl::renderbuffer::~renderbuffer()
glDeleteRenderbuffers(1, *this);
}
void gl::renderbuffer::bind(GLuint id)
void gl::renderbuffer::bind(const GLuint id)
{
glBindRenderbuffer(GL_RENDERBUFFER, id);
}
void gl::renderbuffer::alloc(GLuint format, int width, int height, int samples)
void gl::renderbuffer::alloc(const GLuint format, const int width, const int height, const int samples)
{
bind();
if (samples == 1)