OpenGL之 GLSL编码错误现象与解决方法

慎壹

关注

阅读 61

2022-03-24

“???” 错误

在运行OpenGL 程序是,出现了如下错误

*** Problematic Tessellation Control shader source code ***
#define lowp
#define mediump
#define highp
#line 1
???#version 330
#line 1
layout (vertices = 4) out;

找了好久,终于在google上找到了解答,原来是编码格式的问题

???#version 330

编码格式错误

相关推荐

精彩评论(0)

0 0 举报