0
点赞
收藏
分享

微信扫一扫

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

慎壹 2022-03-24 阅读 60
图形渲染

“???” 错误

在运行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 条评论