Mercurial > sdl-ios-xcode
comparison src/video/SDL_renderer_gl.c @ 2808:368410632f2d
Whoops, we need this for subrect updates (testsprite)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Nov 2008 15:32:14 +0000 |
parents | 7af8c4ad427e |
children | 7e257c3a3bf0 |
comparison
equal
deleted
inserted
replaced
2807:365fe1a2aad5 | 2808:368410632f2d |
---|---|
687 renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 1); | 687 renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 1); |
688 } else if (texture->format == SDL_PIXELFORMAT_INDEX1MSB) { | 688 } else if (texture->format == SDL_PIXELFORMAT_INDEX1MSB) { |
689 renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0); | 689 renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0); |
690 } | 690 } |
691 renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1); | 691 renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1); |
692 renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, | |
693 pitch / SDL_BYTESPERPIXEL(texture->format)); | |
692 } | 694 } |
693 | 695 |
694 static int | 696 static int |
695 GL_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture) | 697 GL_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture) |
696 { | 698 { |