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:
4d34890
)
context: use GL_RGBA when full OpenGL is used
author
David Herrmann
<dh.herrmann@googlemail.com>
Tue, 24 Jan 2012 14:14:15 +0000
(15:14 +0100)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Tue, 24 Jan 2012 14:14:15 +0000
(15:14 +0100)
GL_BGRA_EXT as internal format is not supported with full OpenGL so we
must use GL_RGBA as internal format.
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
0e3d1e9
..
cf36f82
100644
(file)
--- a/
src/output_context.c
+++ b/
src/output_context.c
@@
-705,8
+705,13
@@
void kmscon_context_set_tex(struct kmscon_context *ctx, unsigned int tex,
return;
glBindTexture(GL_TEXTURE_2D, tex);
+#ifdef USE_GLES2
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT, width, height, 0, GL_BGRA_EXT,
GL_UNSIGNED_BYTE, buf);
+#else
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_BGRA,
+ GL_UNSIGNED_BYTE, buf);
+#endif
}
int renderbuffer_new(struct renderbuffer **out, struct kmscon_context *ctx,