Open itgenie98 opened 6 years ago
If you put glBegin and glEnd within a display list, it will work, but glEnd by itself still dies. It's a bizarre error.
This is strange. Anyway this fork sadly seems to be dead.
Edit opengl.rb
Insert begin/rescue around implementation.send:
define_singleton_method(mn) do |args,&block| begin implementation.send(mn, args, &block) rescue end end define_method(mn) do |args,&block| begin implementation.send(mn, args, &block) rescue end end
This is a kludge of course, but I can now execute my opengl code.
When i run the Examples, sometimes its get an error if the Program tries to use glEnd. Here is a log of the nehe_lesson02.rb run on Windows 7 with Ruby 2.4.2-2