-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hello !
I'm trying to have a Syphon and a window resize (by script or by hand) working together in (Unity 5.3 with openGL 2 and Syphon a17) and it crashes when launching a build of the program. When building in development mode and looking in the logs I get the following error :
Releasing render texture that is set as Camera.targetTexture!
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Camera/Camera.cpp Line: 2942)
and then multiple instances of this one :
NullReferenceException: Object reference not set to an instance of an object
(Filename: /Users/anakin/code/AugmentaUnity/Assets/Plugins/Syphon/SyphonTexture-AdvancedUsers/SyphonServerTextureCustomResolution.cs Line: 134)
I managed to remove the second error by adding the following snippet in the Update method of my script, but that would be great if the Syphon plugin could handle it itself :
if(gameObject.GetComponent<Camera>().targetTexture == null){
ResizeSyphonRenderTexture ();
}
Now my additional problem is that the player still crashes in the normal build mode, even without resizing the window, but it seems to be related to OpenGL2 (which I have to use or it doesn't work either, but the issue has been opened already).
Any thoughts ? Is it Syphon related or should I do something myself ?
Thanks !