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 1220

Summary: SDL_UpdateTexture when using SDL_RENDERER_SOFTWARE and texture access is TEXTURE_ACCESS_STATIC
Product: SDL Reporter: Dimitris Zenios <dimitris.zenios>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: Fixes bug

Description Dimitris Zenios 2011-06-10 02:30:27 UTC
Created attachment 619 [details]
Fixes bug

This only happens when using SDL_RENDERER_SOFTWARE

When we create a texture from surface the texture access is static and sdl enables rle on the texture.

When we do SDL_UpdateTexture on that specified texture, sdl must lock the texture and unlock after updating pixels, else the program crashes.

The attached patch fixes this issue
Comment 1 Ryan C. Gordon 2011-07-16 15:05:25 UTC
This is now hg changeset 441c3036440c, thanks!

--ryan.