I’m trying to update a portion of a large texture using glTexSubImage2D, but when I update, lets say a 32x32 portion of it located at xoffset, yoffset…
the updated portion gets lines of the updating texture, like scan lines where it skips rows in the texture.
I know i need to call glPixelStorei, but I do not know what values to pass to get this to work correctly. Basically all I want to do is take a 32x32 square block of image data and place it onto a texture at xoffset, yoffset using glTexSubImage2D.
Can someone help me with this ?