SDL2 and CHIP-8-emulator [SOLVED]

Hi guys. I’m very new to golang. I want to build this from source in Windows 10/64 bits. I follow this and when i build, the binary panics.

‘panic: Conflicting window flags specified
goroutine 1 [running, locked to thread]:
C:/Users/rsrim/go/src/ +0x17d
C:/Users/rsrim/go/src/ +0x274’

Do you guys have any ideas ?
Thank you.

WINDOWPOS_CENTERED is not a valid sdl.CreateWindow flag. (see:

I’m guessing should be

	flags := sdl.WINDOW_OPENGL

You are right my friend. I remove the flag and now works fine !!! :grinning:
Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.