All pastes #618277 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-13 21:24 UTC
rendered paste body
typedef struct {
	unsigned int id;
	int num;
	char **data;
} mipmap;

void free_mipmap(mipmap *mip) {
	int i=0;
	
	if(mip->num>=0) {	
		for(;i<mip->num;i++) {
			free(mip->data[i]);
		}
	}
	free(mip->data);

}