PDA

View Full Version : Texture shift color



Debian
12-23-2015, 06:54 AM
Hello!
I work with texture 320x240 with GL_BGRA type. All success If I load it in full resolution, but if I crop it I can get color shift and texture output in yellow, purple or blue color.
I try align texture width to 4 and 16, I also try setup use glPixelStorei(GL_UNPACK_ALIGNMENT, 1), unfortunately this not solve problem.
How can I solve problem with color shift?
Thank you and excuse my bad english.