| Summary: | SDL_UpdateTexture crashes for texture with SDL_TEXTUREACCESS_TARGET | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Damian Kaczmarek <rush> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
| Attachments: |
Example showing the problem
Fix for the bug |
||
|
Description
Damian Kaczmarek
2014-08-08 14:54:28 UTC
Created attachment 1807 [details]
Fix for the bug
Fixed crash, please review. According to my tests it's working properly.
According to the documentation, the lockrect on the render target, created in D3DPOOL_DEFAULT, should fail: http://msdn.microsoft.com/en-us/library/windows/desktop/bb205913(v=vs.85).aspx Is that what you're seeing? The update doesn't crash, but also doesn't actually happen? Can you check to see if this fixes the issue for you? https://hg.libsdl.org/SDL/rev/86a6f6d92960 Thanks! As far as I am concerned my update fixed it and I am not seeing any adverse effects. In what way is it wrong? Do you have a test program that fails? I see your patch is quite large. I can check this but probably tomorrow earliest. LockRect on the render target, created in D3DPOOL_DEFAULT is supposed to fail, according to Microsoft's documentation, and I have seen this in the past. My patch uses a staging surface for render targets as well, which is the recommended way of updating textures. I see, so it worked for me by accident? :) (non conformant NVIDIA driver?) Yes, most likely. When you get a chance, can you try the patch? Thanks! Just pinging to see if we can close this bug with the changes Sam made, or if it needs further work. --ryan. Whoops, changing the bug status back to WAITING --ryan. |