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 667

Summary: testsprite2 couldn't create x11 texture
Product: SDL Reporter: Ivo Danihelka <ivo>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Linux   

Description Ivo Danihelka 2009-01-03 16:52:52 UTC
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.
Comment 1 Sam Lantinga 2009-02-16 21:34:40 UTC
This is fixed in subversion, thanks!