Browse Source

doc: QtGl: set the shader precision

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
pull/126/head
Steve Lhomme 6 years ago
committed by Jean-Baptiste Kempf
parent
commit
1d80e39533
  1. 2
      doc/libvlc/QtGL/qtvlcwidget.cpp

2
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"

Loading…
Cancel
Save