Merge pull request #474 from RobertBColton/master

Fixed Object Index With Inheritance
Small fixes to drawing

-Fixed problems with tile's not resetting texture (this fixes god rays
example)
-Fixed draw_getpixel as it didn't actually call a state change (this
fixes minecraft example)
-Added .ini's to gitignore. ENIGMA.exe creates an .ini file and so it's
cumbersum to deselect every time.
Merge pull request #475 from RobertBColton/master

Direct3D Improvements
Merge pull request #477 from RobertBColton/master

Copyright Fix
Direct3D 9.0 Improvements
Added proper d3d_primitive_* and draw_primitive_* batching so no more
segfault. Also got the house effects demo working and added light state
memorization to the Direct3D 9.0 device manager.