I'm working with the Cen64 emulator and I compiled from source a x86 version that operates fine on Windows 10 x64. As soon as I run it on a Windows XP x86 machine the colors are then all incorrect. Here are some screenshots:
Running on Win 10
Running on Win XP SP3
The color format is set to GL_UNSIGNED_SHORT_5_5_5_1 and the internal format is GL_RGBA:
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, hres + hskip, vres,
0, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, buffer);
I'm pretty new to configuring color packing formats but it appears like some color channels are getting swapped? Maybe some sort of endianness issue going from an x64 to an x86 architecture?
Please let me know if I need to show more of my code to help debug the issue. Thanks for any help! ^_^