I'm not sure if this is a go-gl issue or a user issue but whenever i try to do gl.Init() I get kicked back to the prompt with a message of
"exit status 3221225781"
I notice that when I remove the gl.Init() from the code below I at least see the sdl window. Has anyone else had this issue?
var window *sdl.Window
var context sdl.GLContext
var event sdl.Event
var running bool
var err error
runtime.LockOSThread()
if 0 != sdl.Init(sdl.INIT_EVERYTHING) {
panic(sdl.GetError())
}
window, err = sdl.CreateWindow(winTitle, sdl.WINDOWPOS_UNDEFINED,
sdl.WINDOWPOS_UNDEFINED,
winWidth, winHeight, sdl.WINDOW_OPENGL)
if err != nil {
panic(err)
}
if window == nil {
panic(sdl.GetError())
}
context = sdl.GL_CreateContext(window)
if context == nil {
panic(sdl.GetError())
}
if gl.Init() != 0 {
panic("gl error")
}
I'm not sure if this is a go-gl issue or a user issue but whenever i try to do gl.Init() I get kicked back to the prompt with a message of "exit status 3221225781"
I notice that when I remove the gl.Init() from the code below I at least see the sdl window. Has anyone else had this issue?