Fix pedantic shader crash