fix memory leak in graphic card memory.
remove unused texture shit.