make GLMatrix::to_uniform() const

This commit is contained in:
Josh Holtrop 2012-09-16 12:39:42 -04:00
parent 932b0b55f6
commit ca50407d90
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ void GLMatrix::ortho(GLfloat left, GLfloat right,
multiply(mult);
}
void GLMatrix::to_uniform(GLint uniform)
void GLMatrix::to_uniform(GLint uniform) const
{
glUniformMatrix4fv(uniform, 1, GL_FALSE, &m_mat[0][0]);
}

View File

@ -31,7 +31,7 @@ class GLMatrix
void ortho(GLfloat left, GLfloat right,
GLfloat bottom, GLfloat top,
GLfloat z_near, GLfloat z_far);
void to_uniform(GLint uniform);
void to_uniform(GLint uniform) const;
void push();
void pop();