Add PollEvent so Window appears (#5)

This commit is contained in:
David Hudson 2019-06-12 17:58:37 -07:00 committed by Lilis Iskandar
parent 548f2abfec
commit 9f26a016aa
1 changed files with 3 additions and 2 deletions

View File

@ -4,8 +4,9 @@ package main
import (
"fmt"
"github.com/veandco/go-sdl2/sdl"
"os"
"github.com/veandco/go-sdl2/sdl"
)
var winTitle string = "Go-SDL2 Render"
@ -62,7 +63,7 @@ func run() int {
renderer.FillRects(rects)
renderer.Present()
sdl.PollEvent()
sdl.Delay(2000)
return 0