Ticket #853 (closed bug: fixed)
Can't load OpenGL
Reported by: | fperrad | Owned by: | NotFound |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | library | Version: | 1.3.0 |
Severity: | medium | Keywords: | |
Cc: | japhb | Language: | |
Patch status: | obsolete | Platform: | all |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.