[vlc-devel] [PATCH 3/5] doc: QtGl: set the shader precision

Steve Lhomme robux4 at ycbcr.xyz
Fri Feb 26 15:15:05 UTC 2021


On Windows if I don't set this I get the following error:

QOpenGLShader::compile(Fragment): ERROR: 0:3: '' : No precision specified for (float)
ERROR: 0:8: ';' : syntax error
---
 doc/libvlc/QtGL/qtvlcwidget.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/doc/libvlc/QtGL/qtvlcwidget.cpp b/doc/libvlc/QtGL/qtvlcwidget.cpp
index c16fb335091..de4101bbbce 100644
--- a/doc/libvlc/QtGL/qtvlcwidget.cpp
+++ b/doc/libvlc/QtGL/qtvlcwidget.cpp
@@ -287,6 +287,8 @@ static const char *vertexShaderSource =
     "}\n";
 
 static const char *fragmentShaderSource =
+    "precision highp float;\n"
+    "\n"
     "uniform sampler2D texture;\n"
     "\n"
     "varying vec2 texcoord;\n"
-- 
2.29.2



More information about the vlc-devel mailing list