Added scaling and rotating to texture
Fix illegal access bug in glDrawArrays
cleanup