replaced Driver.SetBuffer() with SetDrawBuffer() and SetReadBuffer()