Skip to content

SDL_CreateTextureFromSurface does not appear to correctly respect SDL_PIXELFORMAT_INDEX1LSB #7844

@alestane

Description

@alestane

Test case at github.com/alestane/sdl_surface_test_nff/. Provided with a packed black-white bitmap, SDL_CreateTextureFromSurface treats the contents as being in MSB order even if SDL_PIXELFORMAT_INDEX1LSB is specified

Uncomment lines 41-44 of demo.cpp to manually reverse each byte before drawing.

SDL_ConvertSurface also appears to be affected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions