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

Commit

Permalink
Whoops, we need this for subrect updates (testsprite)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 29, 2008
1 parent 2001707 commit 2719ec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -689,6 +689,8 @@ SetupTextureUpdate(GL_RenderData * renderdata, SDL_Texture * texture,
renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
}
renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH,
pitch / SDL_BYTESPERPIXEL(texture->format));
}

static int
Expand Down

0 comments on commit 2719ec6

Please sign in to comment.