Registered User
12-24-2011, 12:43 AM
Can gltexsubimage* copy a subregion of a texture on to a subregion of itself?
e.g., can it take the upper left 10x10 pixel area of a texture and copy it to the lower right corner of the same texture?
I know this can be accomplished several other ways, but I mean specifically, can gltexsubimage* do it? Seems like it can, because I can almost make it work... The exception being that the subimage comes out scrambled. Am I calculating the offset into the texture data like a moron?
e.g., can it take the upper left 10x10 pixel area of a texture and copy it to the lower right corner of the same texture?
I know this can be accomplished several other ways, but I mean specifically, can gltexsubimage* do it? Seems like it can, because I can almost make it work... The exception being that the subimage comes out scrambled. Am I calculating the offset into the texture data like a moron?