Did you allocate storage for your osg::Image* before using it (i.e. osg::Image*
img = new osg::Image)? That doesn't make sense why it would only work on a
osg::ref_ptr.
Marlin Rowley
Software Engineer, Staff
Missiles and Fire Control
972-603-1931
I just noticed that. You'll have to check and see what line it's crashing on
in the debugger. I just noticed that you get a graphics context but never
check to see if it's NULL. A NULL pointer can't access any methods of the
class it's referring to.
Good Luck!
2 matches
Mail list logo