• 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:42:28 +0100

(sorry for double post, forgot the subject)

Hi,

I'm using NSOpenGLContext to optimize drawing 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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: GM in iOS
  • Next by Date: Different Sample Rate on recording and output
  • Previous by thread: Re: Audiounit output names
  • Next by thread: Different Sample Rate on recording and output
  • Index(es):
    • Date
    • Thread