added texture parameter stuff and fixed multisampling