| Summary: | Error calling SDL_RenderReadPixels() with format=0 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Marco Schulze <marco.c.schulze> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Marco Schulze
2011-03-07 08:17:16 UTC
That's because you pass in a void* pointer and a pitch value, but the API doesn't know what pixel format you're expecting. What is your expected behavior? Oh, of course, 0 uses the format of the rendering target. Is there actually any way to tell what that is? Sorry, it's Monday. /reboot Okay... I see the problem. Thanks! This is fixed, thanks! http://hg.libsdl.org/SDL/rev/46bd121b04a2 Please let me know if you have any troubles. |