| Summary: | testsprite2 couldn't create x11 texture | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ivo Danihelka <ivo> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
This is fixed in subversion, thanks! |
When trying the testsprite2, it just reports error: "Couldn't create texture: Texture format doesn't match window format" That is error message from X11_CreateTexture(). It gets the texture format from SDL_CreateTextureFromSurface(0, temp). When debugging, the actual formats were: texture->format 2251694084 == SDL_PIXELFORMAT_ARGB8888 display->current_mode.format 2249594884 == SDL_PIXELFORMAT_RGB888 Other renderers (software, opengl) work fine. If I forced the SDL_CreateTextureFromSurface to use SDL_PIXELFORMAT_RGB888, the testsprite2 was launched. But there is only one icon smile in the upper left corner and it is not moving.