Window DCs as OpenGL texture

Hi all,

i would like to have a (windowless) OpenGL app that is using the current windows DC (desktop dc) as texture.

How could this be done efficiently (How could the readback of the dc to the main mem and glTexImage () be avoided ?).

Is there a way ?

Thanx

Schelm

I believe there is no reliable way to avoid it.
An unreliable hack works with some setups in using glReadPixels() with a fullscreen OpenGL Window before doing an initial glClear() call.