[libcamera-devel] [PATCH 1/2] qcam: assets: shader: bayer_8.frag: Add precision
Kunal Agarwal
kunalagarwal1072002 at gmail.com
Mon Jun 27 17:24:05 CEST 2022
Add precision for data types
Signed-off-by: Kunal Agarwal <kunalagarwal1072002 at gmail.com>
---
src/qcam/assets/shader/bayer_8.frag | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/qcam/assets/shader/bayer_8.frag b/src/qcam/assets/shader/bayer_8.frag
index 4ece44ab..7e35ca88 100644
--- a/src/qcam/assets/shader/bayer_8.frag
+++ b/src/qcam/assets/shader/bayer_8.frag
@@ -15,6 +15,9 @@ Copyright (C) 2021, Linaro
*/
//Pixel Shader
+#ifdef GL_ES
+precision mediump float;
+#endif
/** Monochrome RGBA or GL_LUMINANCE Bayer encoded texture.*/
uniform sampler2D tex_y;
--
2.25.1
More information about the libcamera-devel
mailing list