id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
853	Can't load OpenGL	fperrad	NotFound	"When I try to load OpenGL from Lua, I obtain the following error :

{{{
Could not find non-existent sub _gl_func_list
    current instr.: 'lua;OpenGL;_wrap_opengl_entry_points' pc 193 (runtime\parrot\library\OpenGL.pir:197)
    called from Sub 'lua;OpenGL;_opengl_init' pc 18 (runtime\parrot\library\OpenGL.pir:93)
    called from Sub 'lua;glut;luaopen_glut' pc 9 (src\lib\glut.pir:33)
    called from Sub 'lua;package;require' pc 59368 (src/lib/luapackage.pir:495)
    called from Sub '&main_10' pc 110 (EVAL_1:47)
    called from Sub 'docall' pc 53370 (src/lib/luaaux.pir:999)
    called from Sub 'handle_script' pc 51155 (lua.pir:303)
    called from Sub 'main' pc 50642 (lua.pir:123)
}}}

The attached patch fixes this issue, OpenGL_funcs.pir becomes an included part of OpenGL.pir instead of an independent PBC file.


In a long term step, we could refactor config/gen/opengl.pm with template, and merge OpenGL.pir & OpenGL_funcs.pir in an single file.
"	bug	closed	normal		library	1.3.0	medium	fixed		japhb		obsolete	all
