From ca50407d902f079f442a86c52642338f2fb7fe91 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 16 Sep 2012 12:39:42 -0400 Subject: [PATCH] make GLMatrix::to_uniform() const --- src/client/GL/GLMatrix.cc | 2 +- src/client/GL/GLMatrix.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/GL/GLMatrix.cc b/src/client/GL/GLMatrix.cc index abcb9dc..99a4916 100644 --- a/src/client/GL/GLMatrix.cc +++ b/src/client/GL/GLMatrix.cc @@ -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]); } diff --git a/src/client/GL/GLMatrix.h b/src/client/GL/GLMatrix.h index 69db229..f84d324 100644 --- a/src/client/GL/GLMatrix.h +++ b/src/client/GL/GLMatrix.h @@ -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();