Skip to content

opengl #11

@aschao

Description

@aschao

我在银河麒麟上编译使用,正常播放,但是显示黑屏,汇报一下错误,请问我要注意一些什么, (在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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions