aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-01-21 13:36:55 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2016-01-21 13:36:55 +0100
commitf7409c3059ea5dcb6981f5faa81fd4532e6b03ad (patch)
treeb4923be1b14efb623e4a9b79ec594797e28061f8
parent0b33f4c87cb26644ea662455acbc1649858b151f (diff)
qv4l2: remove duplicate hasAlpha assignment
The 'hasAlpha' boolean was also set for non-alpha variants of the RGB555X pixelformat. Clearly a copy-and-paste instead of a cut-and-paste action. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/qv4l2/capture-win-gl.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture-win-gl.cpp
index 76f446af..52ad1cf1 100644
--- a/utils/qv4l2/capture-win-gl.cpp
+++ b/utils/qv4l2/capture-win-gl.cpp
@@ -1519,7 +1519,6 @@ void CaptureWinGLEngine::shader_RGB(__u32 format)
case V4L2_PIX_FMT_XRGB555X:
glTexImage2D(GL_TEXTURE_2D, 0, internalFmt, m_frameWidth, m_frameHeight, 0,
GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV, NULL);
- hasAlpha = true;
break;
case V4L2_PIX_FMT_BGR666:

Privacy Policy