Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
This is byte order dependent.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 12, 2007
1 parent e70cad1 commit 4626c6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -810,7 +810,9 @@ GL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
if (texture->format == SDL_PIXELFORMAT_RGB888) {
int i;
Uint8 *p = (Uint8 *) texturedata->pixels;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
p += 3;
#endif
for (i = texture->h * pitch / 4; i--;) {
*p = 0xff;
p += 4;
Expand Down

0 comments on commit 4626c6a

Please sign in to comment.