This is byte order dependent.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402598
This commit is contained in:
parent
e7a82e9f88
commit
438f7083d8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue