diff options
author | Brian Paul <[email protected]> | 1999-10-10 12:51:29 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-10-10 12:51:29 +0000 |
commit | 60a249d009acec34bd61e12f01caf7bdf87e895c (patch) | |
tree | 004e343be3579ba143ef172130047e60e1cfbbe2 /src/mesa/main/matrix.c | |
parent | 375853e86734ea5735aa64af3a7aa0129bc551d5 (diff) |
now using GL_MALLOC, GL_FREE
Diffstat (limited to 'src/mesa/main/matrix.c')
-rw-r--r-- | src/mesa/main/matrix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c index 154a038b923..a5b080e2bd4 100644 --- a/src/mesa/main/matrix.c +++ b/src/mesa/main/matrix.c @@ -1,4 +1,4 @@ -/* $Id: matrix.c,v 1.5 1999/10/08 09:27:11 keithw Exp $ */ +/* $Id: matrix.c,v 1.6 1999/10/10 12:56:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1410,7 +1410,7 @@ void gl_matrix_ctr( GLmatrix *m ) void gl_matrix_dtr( GLmatrix *m ) { if (m->inv != 0) { - free(m->inv); + GL_FREE(m->inv); m->inv = 0; } } @@ -1426,7 +1426,7 @@ void gl_matrix_set_identity( GLmatrix *m ) void gl_matrix_alloc_inv( GLmatrix *m ) { if (m->inv == 0) { - m->inv = (GLfloat *)malloc(16*sizeof(GLfloat)); + m->inv = (GLfloat *)GL_ALLOC(16*sizeof(GLfloat)); MEMCPY( m->inv, Identity, 16 * sizeof(GLfloat) ); } } |