app/headless: setup default Viewport in NewWindow

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-25 19:10:57 +01:00
parent 0d266c413d
commit 55c74d3159
+1
View File
@@ -45,6 +45,7 @@ func NewWindow(width, height int) (*Window, error) {
if err != nil {
return err
}
dev.Viewport(0, 0, width, height)
fboTex, err := dev.NewTexture(
backend.TextureFormatSRGB,
width, height,