Whoops, we need this for subrect updates (testsprite)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403269
This commit is contained in:
parent
fb253660b5
commit
8e1f968f50
1 changed files with 2 additions and 0 deletions
|
@ -689,6 +689,8 @@ SetupTextureUpdate(GL_RenderData * renderdata, SDL_Texture * texture,
|
||||||
renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
|
renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
|
||||||
}
|
}
|
||||||
renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
|
renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH,
|
||||||
|
pitch / SDL_BYTESPERPIXEL(texture->format));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue