[SDL] SDL_Surface -> OpenGL texture only works with RGBA?
Johannes Bauer
dfnsonfsduifb at gmx.de
Fri Dec 7 07:27:12 PST 2007
Matthias Weigand schrieb:
> I think you have a problem with the GL_UNPACK_ALIGNMENT parameter of
> glPixelStore. Your color data is tightly packed within memory. OpenGL
> defaults to unpack image rows with a 4 byte alignment, which is given in
> case of RGBA data.
>
> Try to set the GL_UNPACK_ALIGNMENT to 1.
That was it! Thank you so much, that's awesome! :-)
Greetings,
Johannes
More information about the SDL
mailing list