OpenGL

作者: 许彦峰 | 来源:发表于2022-03-16 14:56 被阅读0次
错误码 说明 常见错误代码
0x0500-GL_INVALID_ENUM Given when an enumeration parameter is not a legal enumeration for that function. This is given only for local problems; if the spec allows the enumeration in certain circumstances, where other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead. gl接口设置的的枚举类型异常
glPolygonMode(GL_FRONT, GL_LINEAR);
是GL_LINE,不是GL_LINEAR
0x0501
GL_INVALID_VALUE
Given when a value parameter is not a legal value for that function. This is only given for local problems; if the spec allows the value in certain circumstances, where other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead. 数据不合法导致
glPointSize(0);

相关文章

网友评论

      本文标题:OpenGL

      本文链接:https://www.haomeiwen.com/subject/jzspdrtx.html