Jump to content

Talk:OpenGL: Difference between revisions

→‎Go entry broken: Added further comment and analysis.
(Go Win 10)
(→‎Go entry broken: Added further comment and analysis.)
Line 18:
::In case it helps, it opens C:\Windows\System32\opengl32.dll and glu32.dll, both version 10.0.17134.1 (18/04/2018).
::There was no error from glfw.Init(), and if I comment out the third&last check(err) line, it runs fine. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 23:31, 22 January 2019 (UTC)
 
:I've just tried it on Windows 10 myself but with exactly the same results as you obtained.
 
:My versions of opengl32.dll and glu32.dll are a bit earlier than yours - 10.0.16299.15 (29/09/17).
 
:I've tracked down the error to this C function which is called (via cgo) by gl.Init() in gl21.go:
 
<lang c>int init_VERSION_2_1() {
ptrglUniformMatrix2x3fv = goglGetProcAddress("glUniformMatrix2x3fv");
if(ptrglUniformMatrix2x3fv == NULL) return 1;
ptrglUniformMatrix3x2fv = goglGetProcAddress("glUniformMatrix3x2fv");
if(ptrglUniformMatrix3x2fv == NULL) return 1;
ptrglUniformMatrix2x4fv = goglGetProcAddress("glUniformMatrix2x4fv");
if(ptrglUniformMatrix2x4fv == NULL) return 1;
ptrglUniformMatrix4x2fv = goglGetProcAddress("glUniformMatrix4x2fv");
if(ptrglUniformMatrix4x2fv == NULL) return 1;
ptrglUniformMatrix3x4fv = goglGetProcAddress("glUniformMatrix3x4fv");
if(ptrglUniformMatrix3x4fv == NULL) return 1;
ptrglUniformMatrix4x3fv = goglGetProcAddress("glUniformMatrix4x3fv");
if(ptrglUniformMatrix4x3fv == NULL) return 1;
return 0;
}</lang>
 
:So it appears that one (or more) of these tests is producing a null pointer though - as it works fine when the error returned by :gl.Init() is ignored - that this doesn't matter as far as this particular application is concerned.
 
:I've tried various things including updating the graphics card driver but to no avail so, unless you've any other ideas, I think for now :I'll just note that it ''may'' only work on Windows 10 if you ignore the initialization error.--[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 11:15, 23 January 2019 (UTC)
9,482

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.