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

gl.Init fails in gl21 with Intel GPU on Windows #14

Open
ghost opened this issue Sep 4, 2012 · 1 comment
Open

gl.Init fails in gl21 with Intel GPU on Windows #14

ghost opened this issue Sep 4, 2012 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 4, 2012

Hey,
I have a laptop with a HD3000 Intel GPU and a discrete AMD GPU both with recent drivers. AMD supports OpenGL 4.1 and Intel 3.1.
OS: Windows 7 64bit

Source: http://pastebin.com/sKxUner5

This simple example fails for me with the Intel GPU with the following error:

unable to initialize VERSION_1_2_DEPRECATEDpanic: runtime error: call of nil func value
[signal 0xc0000005 code=0x8 addr=0x0 pc=0x0]

goroutine 1 [syscall]:
github.com/chsc/gogl/gl21._Cfunc_goglCreateShader(0x8b31, 0x25800000320)
C:/Users/Manuel/AppData/Local/Temp/go-build118120071/github.com/chsc/gogl/gl21/_obj/_cgo_defun.c:786 +0x32
github.com/chsc/gogl/gl21.CreateShader(0x8b31, 0xf84004d620, 0x2b, 0x0)
C:/Users/Manuel/AppData/Local/Temp/go-build118120071/github.com/chsc/gogl/gl21/_obj/gl21.cgo1.go:4890 +0x26
main.main()
C:/Users/Manuel/Dev/go opengl test/bugrep.go:47 +0x344

I checked that all needed functions are exposed by the Intel driver with glew and everything is there.
Changing the gl version to gl33 results in the mesesage "unable to initialize VERSION_3_2" which is correct since 3.2 is not supported by the driver but the example works then.

With the AMD gpu the example works correct with gl21 and gl33.

I found the following page, maybe it helps you: http://www.opengl.org/wiki/Load_OpenGL_Functions
I would like to help you testing but I am new to Go and OpenGL and probably can not help you with code.
Thanks for the nice bindings

@chsc
Copy link
Owner

chsc commented Sep 6, 2012

I've tested your sample program with an AMD radeon and an nvidia graphics card (ubuntu 64+32 bit). It works without any problems. I don't know why it doesn't find the entry points on Intel hardware.

gl33 is a pure OpenGL 3.3 core profile package, so the VERSION_ * _ * _DEPRECATED error doesn't show up.
If you want a GL 3.1 core package: simply follow the instructions in the README.md file. I think this should work for Intel's HD3000.

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