Blender 2.9 Python GPU Module, drawing lines in the wrong position
The problem seems to arise only when using uniform_float(). Instead I put the position/color information inside the batch_for_shader()-function and update it whenever necessary. It now works like a charm.