added glDeleteTextures at the end of main.c