Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting Fullscreen when calling window.Run() fails. #172

Open
Jsewill opened this issue Jul 7, 2017 · 0 comments
Open

Requesting Fullscreen when calling window.Run() fails. #172

Jsewill opened this issue Jul 7, 2017 · 0 comments

Comments

@Jsewill
Copy link

Jsewill commented Jul 7, 2017

I'm running Ubuntu 17.04 and using the open source radeon driver. Requesting fullscreen when calling window.Run() results in an almost fullscreen, black area. Here's a more verbose code snippet:

`
func gfxLoop(w window.Window, d gfx.Device) {
// Initialization
...
// Graphics loop
for { ... }
}

func main() {
props := window.NewProps()
props.SetFullScreen(true)
window.Run(gfxLoop, props)
}
`

Perhaps fullscreen should be requested after the MainLoop is running? I'm about to try making the window request during the initialization portion of my gfxLoop function. I didn't see anything in the documentation about not being able to make such a request.

Is there a reason not to try the request when calling window.Run()? If not, I'll just chalk it up to my display driver, or an Ubuntu quirk.

UPDATE: Making the request from within the gfxLoop function works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant