Various preshader fixes