disabled multisampling for tests

This commit is contained in:
Thomas Friedel 2018-07-31 11:52:32 +02:00
parent b6c22b9374
commit 368dda1372
5 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,7 @@ import (
"strings"
"testing"
"github.com/go-gl/gl/v3.2-core/gl"
"github.com/tfriedel6/canvas"
"github.com/tfriedel6/canvas/sdlcanvas"
)
@ -20,6 +21,8 @@ func run(t *testing.T, fn func(cv *canvas.Canvas)) {
}
defer wnd.Destroy()
gl.Disable(gl.MULTISAMPLE)
wnd.StartFrame()
cv.ClearRect(0, 0, 100, 100)
fn(cv)
@ -136,7 +139,7 @@ func TestDrawPath(t *testing.T) {
run(t, func(cv *canvas.Canvas) {
cv.SetStrokeStyle("#00F")
cv.SetLineJoin(canvas.Miter)
cv.SetLineWidth(4)
cv.SetLineWidth(8)
cv.BeginPath()
cv.MoveTo(10, 10)
cv.LineTo(30, 10)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 B

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 597 B

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 877 B

After

Width:  |  Height:  |  Size: 529 B