15 minutes ago, CrazyCdn said:I looked over my texture code for my OpenGL class and I never check for width * channels is a multiple of 4. All my textures are power of 2 though in both x and y directions. Some of the textures are 1, 2, 3 or 4 channel textures and I just set glTexImage2D based on the number of channels in the loaded texture. I didn't have time yesterday to look over your code and I'm heading out to run some errands shortly, but I'll leave this tab up for when I get home later.
If I am correct, I think I read somewhere in OpenGL Recommendations that you should use images that the resolution is a perfect quad and the width and height are multiple of 4 (For example 2x2, 4x4, 1024x1024, 2048x2048 etc..) so what you said make sense. But I would still love to know whats causing my current problem just to be a good graphics programmer and be aware of everything.