Commit 438f7083 authored by Sam Lantinga's avatar Sam Lantinga

This is byte order dependent.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402598
parent e7a82e9f
...@@ -810,7 +810,9 @@ GL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture, ...@@ -810,7 +810,9 @@ GL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
if (texture->format == SDL_PIXELFORMAT_RGB888) { if (texture->format == SDL_PIXELFORMAT_RGB888) {
int i; int i;
Uint8 *p = (Uint8 *) texturedata->pixels; Uint8 *p = (Uint8 *) texturedata->pixels;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
p += 3; p += 3;
#endif
for (i = texture->h * pitch / 4; i--;) { for (i = texture->h * pitch / 4; i--;) {
*p = 0xff; *p = 0xff;
p += 4; p += 4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment