PDA

View Full Version : rendering from texture to texture directly



Dragon89
02-08-2007, 01:47 PM
is it possible to render using an FBO texture to the exact same texture... without the original texture being modified until glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); is called?

i knwo that if u use pbuffers u have to use two of them.. but dos this aplply to FBOs also?

arekkusu
02-08-2007, 01:51 PM
No. The FBO spec says this is undefined behavior (because the GPU is heavily parallelized and not guarantee atomicity fetching texels from the same surface you are rendering into.)

Ping pong two textures instead.