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/



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to