bug-gnustep
[Top][All Lists]
Advanced

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

[bug #25548] NSOpenGLContext can't -makeCurrentContext independently of


From: matt rice
Subject: [bug #25548] NSOpenGLContext can't -makeCurrentContext independently of NSOpenGLView.
Date: Fri, 06 Mar 2009 16:01:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020410 Fedora/3.0.6-1.fc9 Firefox/3.0.6

Follow-up Comment #4, bug #25548 (project gnustep):

here's a hack of a patch which implements this, works with my test & MyGL and
my program, it'll need lots cleaning up

Yeah, i know we need a drawable, but the drawable and the NSView are
relatively unrelated except they must share a display.

the views window must be the contexts parent to be displayed in the right
place, we can create the drawable before we are attached to an NSView and then
reparent it to get the view to draw in the right place...

theres a few ways to work around this, create the windows offscreen on
application load
this doesn't help me really, because one of the problems i've run into is
that things like NSOutlineView call -reloadData in initWithCoder: which makes
writing my dataSources a pain since I have to write checks in every method to
see if openGL has been initialized yet, because a call to the renderer before
it is initialized will crash it,

the other option is using multiple nib files, this involves creating an NSBox
and replacing those for every view which shares a window with my nib, besides
that I can't actually look at what my window will look like.

and I cannot change the context after initialization.

I really don't think that there is any proof that the test attached to this
bug shouldn't work, and it isn't documented as not working, and this patch
should show that it isn't impossible.... anyhow yes, I know it could be worked
around but none of those options really appeal to me 

(and fwiw I don't really care if it isn't portable because hacking the
renderer to use glxGetCurrentContext isn't portable either).


(file #17599)
    _______________________________________________________

Additional Item Attachment:

File name: foo.diff                       Size:6 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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