# OpenGLRenderer without a Component (complete offscreen render for Spout/Syphon)

**URL:** <https://forum.juce.com/t/openglrenderer-without-a-component-complete-offscreen-render-for-spout-syphon/22231>\
**Category:** General JUCE discussion\
**Created:** [May 3, 2017, 5:01pm UTC](https://forum.juce.com/t/openglrenderer-without-a-component-complete-offscreen-render-for-spout-syphon/22231 "2017-05-03T17:01:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![benkuper](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/benkuper/32/899_2.png) [@benkuper](https://forum.juce.com/u/benkuper)\
**Post date:** [May 5, 2017, 8:51am UTC](https://forum.juce.com/t/openglrenderer-without-a-component-complete-offscreen-render-for-spout-syphon/22231/4 "2017-05-05T08:51:29Z")

</div>

I’ve got a bit further in my tests, and got to check almost every topic related to OpenGL drawing in the forum, but i can’t find a final answer, so i’ve few more questions :

- Looking at the OpenGLContext source code, it seems actually impossible to do anything with a context without attaching it to a component ? My question is : is it difficult or just impossible ?

- When using the technique above (using only one context and dispatch the openGLRender in my other classes), when i try to use the image.getPixelAt() on a image created with OpenGLImageType, this mess up the whole rendering : all my components are not rendered anymore, and i can’t draw anything after this call. If i create another Image (non-GL) and draw the GL image into this one, then i can access the getPixelAt function on that later image and everything works fine. But as i have to do that at each renderGL() call, when dealing with 1920x1080 textures, everything gets reaaally slow.

- When profiling from VS the CPU activity, there is a strong CPU activity on the deactivateCurrentContext() function (almost 100% of one my CPUs), even when i don’t copy the GL image to a CPU image.

Any suggestion is welcome !  
Thank you

---

_[View the full topic](https://forum.juce.com/t/openglrenderer-without-a-component-complete-offscreen-render-for-spout-syphon/22231)._
