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 - testsprite2 couldn't create x11 texture
Summary: testsprite2 couldn't create x11 texture
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-03 16:52 UTC by Ivo Danihelka
Modified: 2009-02-16 21:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!