- Home /
Using CVOpenGLTextureCache in Plugin on OSX - Get correct OpenGL context?
Has anybody had any luck getting CVOpenGLTextureCache working in a Native plugin on OSX? I have the code working outside of Unity fine - but I can't seem to get it to work inside of Unity. I think the issue is that I don't have the correct OpenGL context - CGLGetCurrentContext() doesn't seem to return the correct one.
I I think thats whats going wrong anyway - as soon as I try to use a texture created from the cache with Texture2D.CreateExternalTexture unity locks up.
Your answer
![](https://koobas.hobune.stream/wayback/20220612042114im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Native Rendering Plugin with Oculus Rift 0 Answers
How can I build the rendering plugin example on OS X 10.10? 1 Answer
OpenGL causing DllNotFoundException on OSX 1 Answer
Need help installing plugin: Razer Chroma SDK Plugin Colore 1 Answer
Is Texture.apply() for Unity == glTexSubImage2D on native side on Unity 1 Answer