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 - SDL_UpdateTexture when using SDL_RENDERER_SOFTWARE and texture access is TEXTURE_ACCESS_STATIC
Summary: SDL_UpdateTexture when using SDL_RENDERER_SOFTWARE and texture access is TEXT...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-10 02:30 UTC by Dimitris Zenios
Modified: 2011-07-16 15:05 UTC (History)
1 user (show)

See Also:


Attachments
Fixes bug (944 bytes, patch)
2011-06-10 02:30 UTC, Dimitris Zenios
Details | Diff

Note You need to log in before you can comment on or make changes to this 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.