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: Xavier Glattard
Subject: [bug #25548] NSOpenGLContext can't -makeCurrentContext independently of NSOpenGLView.
Date: Fri, 06 Mar 2009 08:35:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

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

Incidentally I found a small bug in XGGLFormat. But this has nothing to do
with your problem :/

You cannot 'makeCurrent' a context that has not been attached to a drawable,
ie with [-setView:]. This is not a bug. You probably can not do that even with
glx functions.

If your renderer needs a drawable or a context to initialize itself, then you
have to wait for the View to be ready. I'm afraid you can not even create
programmatically your GLView, then re-parent it when your nib window is ready,
because the current implementation destroys the context when the view is moved
to an other window (this is new, not tested and may not be Cocoa-compatible)

Some suggestions :
* You may insert your NIB file in a programmatically created window that
contains a GLView. (dunno how to do that!)
* Split your NIB file : 1st load the GLView part, then initialize your
renderer, then load the remaining NIB.
* If you can change the context of your renderer _after_ initialization, you
may initialize it with a dummy context.

Hope this will help...

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/





reply via email to

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