summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-19 08:45:34 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-19 08:45:34 -0600
commit0e9838263c88d2b88abbedcd338491d08d61a6ac (patch)
tree52e8c6087682540527aad6608a38529265868895
parent2137e3053ec87e4463fdbd952537d1bbd1a3dbcd (diff)
just use regular malloc(), free(), memcpy()
-rw-r--r--src/mesa/state_tracker/st_atom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c
index 5b3d32cce3..02720804d4 100644
--- a/src/mesa/state_tracker/st_atom.c
+++ b/src/mesa/state_tracker/st_atom.c
@@ -60,7 +60,7 @@ void st_init_atoms( struct st_context *st )
{
GLuint i;
- st->atoms = _mesa_malloc(sizeof(atoms));
+ st->atoms = malloc(sizeof(atoms));
st->nr_atoms = sizeof(atoms)/sizeof(*atoms);
memcpy(st->atoms, atoms, sizeof(atoms));
@@ -79,7 +79,7 @@ void st_init_atoms( struct st_context *st )
void st_destroy_atoms( struct st_context *st )
{
if (st->atoms) {
- _mesa_free(st->atoms);
+ free(st->atoms);
st->atoms = NULL;
}
}
@@ -130,7 +130,7 @@ void st_validate_state( struct st_context *st )
* state atoms are ordered correctly in the list.
*/
struct st_state_flags examined, prev;
- _mesa_memset(&examined, 0, sizeof(examined));
+ memset(&examined, 0, sizeof(examined));
prev = *state;
for (i = 0; i < st->nr_atoms; i++) {