openframeworks/openFrameworks — pull request #1530 by ofTheo (2012-08-31 16:47:21+00:00)
Title: Feature: adds setUseExternalTextureID to ofTexture. Closes #1529.  Allow...

...s for setting external Texture ID which will not be released by ofTexture ( was causing crashes for people trying to use external texture ids ).

This allows you to set ofTexture to use a texture allocated by another library ( ie Core Video ).
The main reason we need this is so we know not to try and release the textureID if it was set externally.

This was tested with osxHighPerformanceVideoPlayerExample which now doesn't crash/error on exit.