discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSOpenGLView


From: Eric Wasylishen
Subject: Re: Problem with NSOpenGLView
Date: Sat, 21 Aug 2010 12:43:23 -0600

Hey,
Could you run it in gdb and post the stack trace?

I had some trouble with pixel formats causing segfaults. In a Cocoa app I was 
working on porting, I had to add this line in the NSOpenGLView subclass's 
-awakeFromNib method:

[self setPixelFormat: [NSOpenGLView defaultPixelFormat]];

Perhaps GNUstep's NSOpenGLView -initWithCoder method needs some tweaking?

Eric

On Aug 20, 2010, at 5:20 PM, German Arias wrote:

> I'm trying to use NSOpenGLView, but I'm facing some problems. And I'm not 
> sure if this is a problem with my GL installation or a problem on GNUstep. I 
> have a simple app:
> 
> 1) Make a new app with PC.
> 2) Edit the gorm file: Add a window and a CostomView.
> 3) Make a subclass of NSOpenGLView.
> 4) Set the class of CustomView to the new subclass.
> 5) Add the necessary flags and directories to use GL.
> 6) Compile the app.
> 7) Test the app: Segmentation fault.
> 
> Any suggestion? I have some code into the method drawRect:. But even if I 
> comment this code, the app crash.
> 
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep




reply via email to

[Prev in Thread] Current Thread [Next in Thread]