I also reproduce this on the experimental branch, and it's crashing
inside OpenGL. Maybe something needs to be done first, before
calling OpenGL? I know it's working nice inside a Cocoa application
context.
I reproduce the same crash with Ruby 1.8 + RubyCocoa too:
$ ruby -r osx/cocoa -e "OSX.require_framework 'OpenGL'; p
OSX.glMatrixMode(OSX::GL_PROJECTION)"
And also with a simple C program:
~/tmp% cat e.c
#include <OpenGL/gl.h>
int main()
{
glMatrixMode(GL_PROJECTION);
return 0;
}
~/tmp% cat e.c
#include <OpenGL/gl.h>
int main()
{
glMatrixMode(GL_PROJECTION);
return 0;
}
~/tmp% gcc -framework OpenGL -o e e.c
~/tmp% ./e
zsh: bus error ./e
So as Laurent said, it's probably just an initialization problem.
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel