- Fix crash with resetting shaders
- Changed behaviour if shaders are in one file or not (Direct3D 11).
- Moved printVersion to the right place (Direct3D 11).
- Shader resources are applied to every shader stage (if needed), also update it only if they has changed (Direct3D 11).
- Fix bug in CVertexBuffer: getVertexType() returns -1 if you use it with your own vertexdescriptor.
- Shaders are compiled with macros (at the moment only with MAX_TEXTURES - it has the same value as MATERIAL_MAX_TEXTURES) (Direct3D 11).
- Clean up code (Direct3D 11).

Thanks to zerochen for prepare this patch.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code@4660 dfc29bdd-3216-0410-991c-e03cc46cb475