Disable shaders when directx8 or directx9 is used

This check is [already done in the settings tab](https://github.com/minetest/minetest/blob/master/builtin/mainmenu/tab_settings.lua#L221), however it is not done on the game's start up.