Skip to content

Commit

Permalink
reverted a previous change as it was not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
tfriedel6 committed Feb 14, 2020
1 parent 55572c5 commit 3e6e46c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions backend/goglbackend/clip.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ func (b *GoGLBackend) Clip(pts [][2]float64) {
b.activate()

b.ptsBuf = b.ptsBuf[:0]
min, max := extent(pts)
b.ptsBuf = append(b.ptsBuf,
float32(min[0]), float32(min[1]),
float32(min[0]), float32(max[1]),
float32(max[0]), float32(max[1]),
float32(max[0]), float32(min[1]))
0, 0,
0, float32(b.fh),
float32(b.fw), float32(b.fh),
float32(b.fw), 0)
for _, pt := range pts {
b.ptsBuf = append(b.ptsBuf, float32(pt[0]), float32(pt[1]))
}
Expand Down

0 comments on commit 3e6e46c

Please sign in to comment.