Skip to content
Snippets Groups Projects
Commit bba16005 authored by Fredrik Höglund's avatar Fredrik Höglund Committed by Stéphane Marchesin
Browse files

st/mesa: fix the texture format in st_context_teximage

Commit 1a339b6c made
st_ChooseTextureFormat map GL_RGBA with type GL_UNSIGNED_BYTE
to PIPE_FORMAT_A8B8G8R8_UNORM.

The image format for ARGB pixmaps is PIPE_FORMAT_B8G8R8A8_UNORM
however. This mismatch caused the texture to be recreated in
st_finalize_texture.

NOTE: This is a candidate for the 7.11 branch.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39209


Signed-off-by: default avatarFredrik Höglund <fredrik@kde.org>
Reviewed-by: default avatarStéphane Marchesin <marcheu@chromium.org>
Signed-off-by: default avatarBrian Paul <brianp@vmware.com>
parent f4c55ea0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment