• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOpenGLContext destroying textures of another context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenGLContext destroying textures of another context


  • Subject: NSOpenGLContext destroying textures of another context
  • From: MeldaProduction <email@hidden>
  • Date: Sat, 15 Feb 2014 14:10:52 +0100

Hi,

I'm using NSOpenGLContext to optimize drawing in AU plugins. There are
multiple plugins and each can have multiple instances. So each plugin
creates a global NSOpenGLContext and attach particular NSView contexts to
it, so that the textures do not need do be duplicated.

Problem: When I open one plugin, it's ok. I open a different on, it's ok.
Now I release the first one, it destroys all resources => the second one
looses its textures!

I checked that both context are different, sharing is different, they both
use makeCurrentContext in both lockFocus and drawRect. Any ideas what is
wrong here?

Btw.I got the same thing working using AGL and WGL (on Windows), both
without problems, so it is just Cocoa as usual.

Cheers!
Vojtech
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Hooking up Help menu item
  • Next by Date: [no subject]
  • Previous by thread: Re: Hooking up Help menu item
  • Next by thread: NSOpenGLContext destroying textures of another context
  • Index(es):
    • Date
    • Thread