#853: Can't load OpenGL
---------------------+------------------------------------------------------
 Reporter:  fperrad  |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  normal   |   Milestone:       
Component:  library  |     Version:  1.3.0
 Severity:  medium   |    Keywords:       
     Lang:           |       Patch:  new  
 Platform:  all      |  
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/853>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to