View Full Version : Paging in textures from one memblock using glTexSubImage2D
06-04-2003, 07:40 AM
i have to do texture uploads at runtime and want to split up one upload into several glSubTexImage2D calls (one for a 512x512 takes too long), in the first run i'd like to upload the upper part ind the 2nd run the lower one. But glTexSubImage(GL_TEXTURE_2D,0,0,0,TexWidth,HalfIma geHeight,....,ub_TextureData); doesn work as expected. Do i have to set GL_PACK_ROW_* even if i use the full width?
Thank you very much in advance.
What does "doesn work as expected" mean? Lots of things can go wrong in a program you know, and without knowing what's wrong we can't tell you how to fix it.
06-05-2003, 01:29 AM
Sorry for my bad "question asking".
The texture was totally messed up, but i found the problem now. I've missed the offset
to the data for the second glTexSubImage call.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.