Implements texture_set_priority for Direct3D9
Fix file formatting.
Fix initial texture sampler state.
Fix formatting.
Merge pull request #784 from RobertBColton/master

General Fixes and Improvements