Loading a BMP into an OpenGL textures switches the red and blue colors. (C++/Windows)

后端 未结 5 1155
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 07:55

I\'m trying to load a bitmap into an OpenGL texture and display it to the screen, but when I do so, the red and blue values seem to switch (e.g.: a blue image appears orange

5条回答
提交回复
热议问题