context: use BGRA_EXT texture internally
Some GLES2 implementations do not support RGBA so use BGRA internally, too. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
32e869b99f
commit
67d0b75640
@ -679,7 +679,7 @@ void kmscon_context_set_tex(struct kmscon_context *ctx, unsigned int tex,
|
||||
return;
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, tex);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_BGRA_EXT,
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT, width, height, 0, GL_BGRA_EXT,
|
||||
GL_UNSIGNED_BYTE, buf);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user