Help with texture colors

I am not sure if what could be causing this error, but when I create a texture the colors are wrong. I output the image data to a ppm to see if maybe my rbg data was wrong going but the ppm is ok.

I fixed it. I reversed the order of my rgb values in the buffer and the color comes out fine

Yes. There are actually several different formats for color integers in computer programming. You’ve found the difference between ARGB and RGBA.