VS报错 error C5060: out can't be used with non-varying FragColor

报错
???#version 330 core
QOpenGLShader::compile(Fragment): 0(2) : error C0204: version directive must be first statement and may not be repeated
0(3) : error C5060: out can't be used with non-varying FragColor

修改.vert与.frag格式文件为utf-8编码格式,不包含在项目中
根据https://blog.csdn.net/hfy1237/article/details/129858976设置vs格式为Unicode(UTF-8 无签名)-代码页 65001

posted @ 2024-02-29 14:38  小阮向阳  阅读(43)  评论(0编辑  收藏  举报