forked from joejulian/gio
app/headless: setup default Viewport in NewWindow
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -45,6 +45,7 @@ func NewWindow(width, height int) (*Window, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
dev.Viewport(0, 0, width, height)
|
||||||
fboTex, err := dev.NewTexture(
|
fboTex, err := dev.NewTexture(
|
||||||
backend.TextureFormatSRGB,
|
backend.TextureFormatSRGB,
|
||||||
width, height,
|
width, height,
|
||||||
|
|||||||
Reference in New Issue
Block a user