optimised shader import and fixed a small bug that wasn't allowing
shader flages to set.
Merge pull request #189 from Ghostwalker71/optimize/shader_import

optimised shader import and fixed a small bug that wasn't allowing