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

Opengl 3.2? #12

Open
Hperigo opened this issue Sep 30, 2018 · 0 comments
Open

Opengl 3.2? #12

Hperigo opened this issue Sep 30, 2018 · 0 comments

Comments

@Hperigo
Copy link

Hperigo commented Sep 30, 2018

Hi, is this library on compatible with opengl 3.2?

I get this error when trying to set the opengl version other then 2.1

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0]

runtime stack:
runtime.throw(0x419f76c, 0x2a)
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/panic.go:616 +0x81
runtime.sigpanic()
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/signal_unix.go:372 +0x28e

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4110b60, 0xc420055b60, 0x0)
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/cgocall.go:128 +0x64 fp=0xc420055b30 sp=0xc420055af8 pc=0x4003d24
github.com/go-gl/gl/v2.1/gl._Cfunc_glowCreateProgram(0x0, 0x0)
        _cgo_gotypes.go:11517 +0x49 fp=0xc420055b60 sp=0xc420055b30 pc=0x40c37a9
github.com/go-gl/gl/v2.1/gl.CreateProgram(0x20)
        /Users/henrique/go/src/github.com/go-gl/gl/v2.1/gl/package.go:19927 +0x2d fp=0xc420055b80 sp=0xc420055b60 pc=0x40c6b5d
github.com/goxjs/gl.CreateProgram(0xc420055bf0)
        /Users/henrique/go/src/github.com/goxjs/gl/gl_opengl.go:244 +0x22 fp=0xc420055b98 sp=0xc420055b80 pc=0x40c80b2
github.com/shibukawa/nanovgo.(*glShader).createShader(0xc4200a6000, 0x4192b3b, 0x6, 0x41a0182, 0x33, 0x0, 0x0, 0x41a0ba0, 0x199, 0x41a0d39, ...)
        /Users/henrique/go/src/github.com/shibukawa/nanovgo/gl_backend.go:38 +0x34 fp=0xc420055c50 sp=0xc420055b98 pc=0x40e0224
github.com/shibukawa/nanovgo.(*glParams).renderCreate(0xc420010350, 0xc4200be000, 0x100)
        /Users/henrique/go/src/github.com/shibukawa/nanovgo/gl_backend.go:415 +0x212 fp=0xc420055cd0 sp=0xc420055c50 pc=0x40e2062
github.com/shibukawa/nanovgo.createInternal(0x41b2b00, 0xc420010350, 0x0, 0xc4200a2000, 0x4627770)
        /Users/henrique/go/src/github.com/shibukawa/nanovgo/nanovgo.go:1360 +0x3ca fp=0xc420055ee0 sp=0xc420055cd0 pc=0x40e68fa
github.com/shibukawa/nanovgo.NewContext(0x0, 0x1f4, 0x4192b2f, 0x6)
        /Users/henrique/go/src/github.com/shibukawa/nanovgo/gl_backend.go:25 +0x91 fp=0xc420055f20 sp=0xc420055ee0 pc=0x40e01b1
main.main()
        /Users/henrique/Documents/Dev/go/kitos_app/kitosMain.go:43 +0x159 fp=0xc420055f88 sp=0xc420055f20 pc=0x40e8769
runtime.main()
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/proc.go:198 +0x212 fp=0xc420055fe0 sp=0xc420055f88 pc=0x402ac72
runtime.goexit()
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420055fe8 sp=0xc420055fe0 pc=0x4050f81
exit status 2``` 

thanks
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