chan_qx
chan_qx
2016-06-03 06:40
采纳率: 33.3%
浏览 4.1k

Qt OpenGL遇到这个情况如何解决

QOpenGLShaderProgram::addShader: Program and shader are not associated with same context.
QOpenGLShaderProgram::addShader: Program and shader are not associated with same context.
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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • hzaxxsrjzzttdwt

    GL遇到这个情况如何解决
    QOpenGLShaderProgram::addShader: Program and shader are not associated with same context.
    QOpenGLShaderProgram::addShader: Program and shader are not associated with same context.
    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

    点赞 评论
  • Action_MYX
    yx_logger 2019-03-01 15:12

    查一下初始化函数,确保“vshader.glsl”和“fshader.glsl”是否存在,且路径正确

    点赞 评论

相关推荐