summaryrefslogtreecommitdiff
path: root/src/qcam/assets/shader
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2021-06-22 16:46:48 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-30 04:07:58 +0300
commit12ad227efa86507fc116087ea0072ba89a65565c (patch)
treeaca53f754ffdd61c61f6f0c24795214e2a7cd660 /src/qcam/assets/shader
parent831b3f813210b37d82c5777d33357f467321e4c0 (diff)
qcam: viewfinder_gl: Fix wrong comment in bayer_8.frag
Fetching into value[2] corresponds to E0, and fetching into value[3] - to F0. The fetch()-es themselves are correct, but the comments were not. Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/shader')
-rw-r--r--src/qcam/assets/shader/bayer_8.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcam/assets/shader/bayer_8.frag b/src/qcam/assets/shader/bayer_8.frag
index 707e76ed..74a6322f 100644
--- a/src/qcam/assets/shader/bayer_8.frag
+++ b/src/qcam/assets/shader/bayer_8.frag
@@ -68,8 +68,8 @@ void main(void) {
vec4 value = vec4(
fetch(center.x, yCoord[0]), // ( 0,-2)
fetch(center.x, yCoord[1]), // ( 0,-1)
- fetch(xCoord[0], center.y), // (-1, 0)
- fetch(xCoord[1], center.y)); // (-2, 0)
+ fetch(xCoord[0], center.y), // (-2, 0)
+ fetch(xCoord[1], center.y)); // (-1, 0)
vec4 temp = vec4(
fetch(center.x, yCoord[3]), // ( 0, 2)