gl icon indicating copy to clipboard operation
gl copied to clipboard

Init doesnt load glActiveTexture

Open tod91 opened this issue 3 years ago • 2 comments

Hello

I'm trying to run a project on windows 10 but when I get to gl.Init() internally InitWithProcAddrFunc fails on the line where:

	gpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr("glActiveTexture"))
	if gpActiveTexture == nil {
		return errors.New("glActiveTexture")
	}

I have 4.6 opengl drivers and am using Intel(R) UHD Graphics 630 card. Any ideas why this could be occuring, Thanks!

tod91 avatar Jul 15 '22 08:07 tod91

As additional information i tried it with version 3.0 to 4.6, when we go from > 3.3 glActiveTexture is loaded but glActiveShaderProgram fails.

tod91 avatar Jul 15 '22 08:07 tod91

One simple thing to check first is that you’re calling gl.Init after creating an OpenGL context and making it current (e.g., MakeContextCurrent) as mentioned in the README.

dmitshur avatar Jul 15 '22 13:07 dmitshur