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

Summary: GLES_UpdateTexture() ignores pitch
Product: SDL Reporter: pelya <x.pelya.x>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: ARM   
OS: Linux   
Attachments: GLES_UpdateTexture() patch

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