We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1028 - GLES_UpdateTexture() ignores pitch
Summary: GLES_UpdateTexture() ignores pitch
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: ARM Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 04:54 UTC by pelya
Modified: 2011-01-19 23:49 UTC (History)
0 users

See Also:


Attachments
GLES_UpdateTexture() patch (1.41 KB, patch)
2010-07-21 04:54 UTC, pelya
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pelya 2010-07-21 04:54:41 UTC
Created attachment 525 [details]
GLES_UpdateTexture() patch

SDL 1.3 rev hg-4510

GLES_UpdateTexture() ignores pitch value, because of that some textures created with SDL_CreateTextureFromSurface() are drawn incorrectly, especially if image width is not multiplier of 2.

Patch attached, permission to use under commercial license and LGPL is granted.
Comment 1 Sam Lantinga 2011-01-19 23:49:22 UTC
This is fixed, thanks!
http://hg.libsdl.org/SDL/rev/4cb4b18cbae3