bug-gnustep
[Top][All Lists]
Advanced

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

[bug #22706] NSOpenGLView broken ?


From: Xavier Glattard
Subject: [bug #22706] NSOpenGLView broken ?
Date: Mon, 31 Mar 2008 21:24:14 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11

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

Thank you for the clue :-)

As you can read in the specs about [NSView display] :
<< Displays the receiver and all its subviews if possible, invoking each the
NSView methods lockFocus, drawRect:, and unlockFocus as necessary. >>

So at least [lockFocus] must be send, if not [lockFocusInRect:]
Dont you think so ?

I've just tried with [_lockFocusInContext:inRect:] and all seems to run fine.
But I think this is a not so better hack.

Anyway your right : NSOpenGLView had to be fixed to be closer to the specs.
I've just made some changes, but these need some test. But IMHO [lockFocus] is
THE place where the context is made current. This must be done before
[drawRect:]

Thanks again

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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