OpenGL: Difference between revisions

Content added Content deleted
(→‎{{header|Go}}: Updated example so it now works - at least on Ubuntu.)
(→‎{{header|Go}}: Added note in preamble about running this program on Windows 10 and also commented the appropriate line in the program itself.)
Line 1,003:
{{libheader|GLFW 3.2 for Go}}
{{works with|Ubuntu 16.04}}
<br>
This program was also tested on Windows 10 but ''may'' only work if you comment out the marked line. This is because gl.Init() may produce an initialization error which is non-critical as far as this program is concerned. The reason for this error is unknown (see Talk page).
<lang go>package main
 
Line 1,040 ⟶ 1,042:
 
err = gl.Init()
check(err) /* may need to comment out this line for this program to work on Windows 10 */
check(err)
 
// Initiate viewport.