summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-23 22:38:40 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-23 22:38:40 +0200
commit29fba4d0f06d8b14fb433f723888d79f6178257b (patch)
treef87b28fd715501e842dfbf67c5c4b1e2dfcd047a
parentf3c03cbfbc0391d0c1e5d0cb110b6304e474d552 (diff)
Use rgb0 as video type for ES so we ignore alpha
-rw-r--r--glcapture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcapture.c b/glcapture.c
index a271f99..37f99eb 100644
--- a/glcapture.c
+++ b/glcapture.c
@@ -334,7 +334,7 @@ capture_frame_pbo(struct gl *gl, const GLint view[4], const uint64_t ts)
} frame = {
// XXX: Maybe on ES we should instead modify the data and remove A component?
// Would save some transmission bandwidth at least
- .video = (OPENGL_VARIANT == OPENGL_ES ? "rgba" : "rgb"),
+ .video = (OPENGL_VARIANT == OPENGL_ES ? "rgb0" : "rgb"),
.format = (OPENGL_VARIANT == OPENGL_ES ? GL_RGBA : GL_RGB),
.components = (OPENGL_VARIANT == OPENGL_ES ? 4 : 3),
};