fix typos

git-svn-id: svn://svn.code.sf.net/p/vpinball/code/trunk@910 14438d79-0ffd-4333-8ae7-ea2bdd901387
Removed some code duplication from mesh.h by using templates.
Some simplifications to lighting code.
Merge branch 'master' into fixes
Merge branch 'fixes' into dev

Conflicts:
	flipper.cpp
	surface.cpp
Bugfix in DX9 RenderDevice: set render device for textures.
Reenabled texture exporting.