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 19:34:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

Update of bug #25548 (project gnustep):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                 Invalid => Ready For Test         
             Assigned to:                    None => xgl                    
             Open/Closed:                Analyzed => In Test                

    _______________________________________________________

Follow-up Comment #5:

You can not create a sub-window in [GLView -initWithFormat...] because you
don't even know if the context will draw to a window. It might draw
fullscreen, or to a pixmap, or to a pixel buffer. You can not know before
[-setView:] or [-setFullscreen], etc.

But you can reparent a NSOpenGLView. As i said, the current (partial and not
tested) implementation destroy the glx context, that will be re-create on the
new window by the next [-openGLContext]. This (simple) behavior might be
wrong.

Please check the attached patches to the current trunk version. You should
then be able to reparent an NSOpenGLView without the context to be destroyed.

1. create the view [-initWithFrame:...] in an unmap or hidden window
2a. get the context and initialize your renderer
2b. load your nib file
3. add the view to your brand new window [-addSubview:]




(file #17606, file #17607)
    _______________________________________________________

Additional Item Attachment:

File name: back.diff                      Size:0 KB
File name: gui.diff                       Size:1 KB


    _______________________________________________________

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]