bug-gnustep
[Top][All Lists]
Advanced

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

[bug #22706] NSOpenGLView broken ?


From: Fred Kiefer
Subject: [bug #22706] NSOpenGLView broken ?
Date: Mon, 31 Mar 2008 22:41:07 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko) SUSE

Follow-up Comment #3, bug #22706 (project gnustep):

I have some doubts about that two changes you just made.

Moving the attaching of the view to the context into 
setOpenGLContext: looks wrong, as the specification says that you will have
to call setView: after this call. Moving it into 
openGLContext would seem correcter to me. In the later method you have
created a memory leak, the allocated context never gets release.

As far as I can tell the move of the call to makeCurrentContext from the
example code into the _lockFocusInContext:inRect: method is also wrong, but
here I am not that sure. All the examples for using NSOpenGLView (or rather a
subclass of it) that I have found up to now use as a first line in drawRect:
the following:
        [[self openGLContext] makeCurrentContext];

This does not prove that we should not call this method in lockFocus, but
what reason do you have to think we should do so?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22706>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

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