fix for using shaders with 2d drawing