Than I write them in TGA format and mostly everything is OK. Mainly I get the correct images.
Anyway if I change only the texture files - sometimes only rotate a texture image in an external program-
I get distorted images (starting from below some parts are good and than some are shifted in
horizontal direction).
something strange is happening inside glReadPixels?
it is hardware-dependent - I get differently distorted images on different computers
Does anybody know what is happening and how to avoid these problems???
Thank you for your wish to help me but it doesn’t work!
glFlush has nothing to do with it but I tried it anyway!
the same for glPixelTransfer!
Two more conclusion from the tests I made:
The problem occures ONLY for textured images (and not always as I have already described)!
The glCopyPixels is working properly so the problem is in transfering the data into the processor memory!
I have set GL_PACK_ALIGNMENT to 1 (glPixel Store) but that doesn’t help also!