OpenGL waveform renderer (bug)
Several improvements on waveform drawing