diff --git a/GL/texture.c b/GL/texture.c index d6fbfdc..a09511d 100644 --- a/GL/texture.c +++ b/GL/texture.c @@ -224,7 +224,7 @@ void APIENTRY glDeleteTextures(GLsizei n, GLuint *textures) { } if(txr->palette && txr->palette->data) { - free(txr->palette->data); + pvr_mem_free(txr->palette->data); txr->palette->data = NULL; } @@ -1005,11 +1005,11 @@ GLAPI void APIENTRY glColorTableEXT(GLenum target, GLenum internalFormat, GLsize } if(target) { - free(palette->data); + pvr_mem_free(palette->data); palette->data = NULL; } - palette->data = (GLubyte*) malloc(width * 4); + palette->data = (GLubyte*) pvr_mem_malloc(width * 4); palette->format = format; palette->width = width;