Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opengl #11

Open
aschao opened this issue Sep 26, 2022 · 0 comments
Open

opengl #11

aschao opened this issue Sep 26, 2022 · 0 comments

Comments

@aschao
Copy link

aschao commented Sep 26, 2022

我在银河麒麟上编译使用,正常播放,但是显示黑屏,汇报一下错误,请问我要注意一些什么, (在unbutu上能成功使用)

QOpenGLShader::compile(Fragment): 0:1(1): error: No precision specified in this scope for type vec2' 0:1(119): error: No precision specified in this scope for type vec3'
0:1(129): error: No precision specified in this scope for type `vec3'

*** Problematic Fragment shader source code ***
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
varying vec2 textureOut; uniform sampler2D tex_y; uniform sampler2D tex_u; uniform sampler2D tex_v; void main(void) { vec3 yuv; vec3 rgb; yuv.x = texture2D(tex_y, textureOut).r; yuv.y = texture2D(tex_u, textureOut).r - 0.5; yuv.z = texture2D(tex_v, textureOut).r - 0.5; rgb = mat3( 1, 1, 1, 0, -0.39465, 2.03211, 1.13983, -0.58060, 0) * yuv; gl_FragColor = vec4(rgb, 1); }


QOpenGLShader::link: "error: linking with uncompiled/unspecialized shader"
QOpenGLShader::link: "error: linking with uncompiled/unspecialized shader"
QOpenGLShaderProgram::uniformLocation( tex_y ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( tex_u ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( tex_v ): shader program is not linked
setVideoWidth 1440 900 false
QOpenGLShader::link: "error: linking with uncompiled/unspecialized shader"
QOpenGLShader::link: "error: linking with uncompiled/unspecialized shader"
QOpenGLShader::link: "error: linking with uncompiled/unspecialized shader"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant