Follow-up Comment #1, bug #25943 (project gnustep):

Your great debugging session shows quite clear where the problem is. It is
the call to  [NSGraphicsContext saveGraphicsState], as this happens on a
secondary thread there is no previous graphics context (GSCurrentContext()
return nil). NSApplication takes care that the thread that calls
[NSApplication init] has a graphics context set up, but similar things don't
happen automatically for other threads.

You could use the method [NSGraphicsContext setCurrentContext:] in that
secondary thread to do this yourself.
I would expect that behaviour of Cocoa to be different and will welcome any
patches to make drawing in GNUstep work on secondary threads.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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