projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e869b
)
context: use BGRA_EXT texture internally
author
David Herrmann
<dh.herrmann@googlemail.com>
Fri, 20 Jan 2012 17:07:52 +0000
(18:07 +0100)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Fri, 20 Jan 2012 17:07:52 +0000
(18:07 +0100)
Some GLES2 implementations do not support RGBA so use BGRA internally,
too.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/output_context.c
patch
|
blob
|
history
diff --git
a/src/output_context.c
b/src/output_context.c
index
9c5e7a0
..
6c7527f
100644
(file)
--- a/
src/output_context.c
+++ b/
src/output_context.c
@@
-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);
}