various fixes to shaders and cairo