| Summary: | SDL_UpdateTexture when using SDL_RENDERER_SOFTWARE and texture access is TEXTURE_ACCESS_STATIC | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Dimitris Zenios <dimitris.zenios> |
| Component: | video | Assignee: | 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 | ||
This is now hg changeset 441c3036440c, thanks! --ryan. |
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