D3D9 Sprites, Backgrounds, and Globals
My little tile trick for sprites and backgrounds didn't work with NONPOT
textures. Also mouse_x and mouse_y and other globals are not getting
updated under D3D 9, added mouse_x and mouse_y temporarily to
screen_redraw, will file another bug report seperately.
Cleaned up texture binding.
Merge pull request #287 from RobertBColton/master

D3D9 Sprites, Backgrounds, and Globals
Merge branch 'master' into integration_testing_develop
Added test for drawing primitives.
Fix issue in memory handling of Mesh clearing.

The issue was that the memory pointed to by pointers in a vector
was not freed before the pointers were cleared from the vector.
The fix simply deletes each pointer before clearing the vector.
Merge branch 'master' into integration_testing_develop
Adds test for shapes drawing working before and after text drawing.