disabled multisampling for tests
|
@ -8,6 +8,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/go-gl/gl/v3.2-core/gl"
|
||||||
"github.com/tfriedel6/canvas"
|
"github.com/tfriedel6/canvas"
|
||||||
"github.com/tfriedel6/canvas/sdlcanvas"
|
"github.com/tfriedel6/canvas/sdlcanvas"
|
||||||
)
|
)
|
||||||
|
@ -20,6 +21,8 @@ func run(t *testing.T, fn func(cv *canvas.Canvas)) {
|
||||||
}
|
}
|
||||||
defer wnd.Destroy()
|
defer wnd.Destroy()
|
||||||
|
|
||||||
|
gl.Disable(gl.MULTISAMPLE)
|
||||||
|
|
||||||
wnd.StartFrame()
|
wnd.StartFrame()
|
||||||
cv.ClearRect(0, 0, 100, 100)
|
cv.ClearRect(0, 0, 100, 100)
|
||||||
fn(cv)
|
fn(cv)
|
||||||
|
@ -136,7 +139,7 @@ func TestDrawPath(t *testing.T) {
|
||||||
run(t, func(cv *canvas.Canvas) {
|
run(t, func(cv *canvas.Canvas) {
|
||||||
cv.SetStrokeStyle("#00F")
|
cv.SetStrokeStyle("#00F")
|
||||||
cv.SetLineJoin(canvas.Miter)
|
cv.SetLineJoin(canvas.Miter)
|
||||||
cv.SetLineWidth(4)
|
cv.SetLineWidth(8)
|
||||||
cv.BeginPath()
|
cv.BeginPath()
|
||||||
cv.MoveTo(10, 10)
|
cv.MoveTo(10, 10)
|
||||||
cv.LineTo(30, 10)
|
cv.LineTo(30, 10)
|
||||||
|
|
Before Width: | Height: | Size: 455 B After Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 877 B After Width: | Height: | Size: 529 B |