]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added a missing const modifier
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Dec 2006 15:55:42 +0000 (15:55 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Dec 2006 15:55:42 +0000 (15:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6670 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c
gl_backend.h

index 286b5452f87b03788db5f949fe03264d7365903d..50d37a71186281a54e31e86d51d8d27cbeb21a55 100644 (file)
@@ -246,7 +246,7 @@ void GL_SetupView_Orientation_Identity (void)
        memset(&backend_modelmatrix, 0, sizeof(backend_modelmatrix));
 }
 
-void GL_SetupView_Orientation_FromEntity(matrix4x4_t *matrix)
+void GL_SetupView_Orientation_FromEntity(const matrix4x4_t *matrix)
 {
        matrix4x4_t tempmatrix, basematrix;
        Matrix4x4_Invert_Simple(&tempmatrix, matrix);
index 6dd8d0ae531016fea5cc8afeb020f630e9aac734..b36225229fa60536b730c846980de4e085cd3a51 100644 (file)
@@ -11,7 +11,7 @@ extern int polygonelements[(POLYGONELEMENTS_MAXPOINTS-2)*3];
 extern int quadelements[QUADELEMENTS_MAXQUADS*6];
 
 void GL_SetupView_Orientation_Identity(void);
-void GL_SetupView_Orientation_FromEntity(matrix4x4_t *matrix);
+void GL_SetupView_Orientation_FromEntity(const matrix4x4_t *matrix);
 void GL_SetupView_Mode_Perspective(double frustumx, double frustumy, double zNear, double zFar);
 void GL_SetupView_Mode_PerspectiveInfiniteFarClip(double frustumx, double frustumy, double zNear);
 void GL_SetupView_Mode_Ortho(double x1, double y1, double x2, double y2, double zNear, double zFar);