View Full Version : Is Copy Texture -> Texture possible?

08-21-2002, 04:19 PM
Is it possible to directly copy the contents of one texture directly to the contents of another texture?

(Ie. what I really want to do is clone an existing texture without destroying(overriding) the frame buffer, creating a P-buffer or stalling the pipeline by reading the texture back into main memory)

08-22-2002, 10:14 AM
Do the "glCopyTexImage*" and "glCopyTexSubImage*" calls do what you need?

Blue book. Required reading.
-- Jeff

08-22-2002, 01:35 PM
No, those won't copy from texture to texture.

I think the best way is to just save the texture in system memory and re-upload it when needed. If you can't do that, you'll have to render the texture to a buffer and use glCopyTexSubImage2D() to copy it into a new texture.

-- Zeno