worked on texture issues on openpandora
only known issue left is blurred textures if w!=h
time for cleanup or more optimizations