例如,
struct A{
GLint a1;
GLint a2;
GLint a3;
};
Uniform X{
A a[8];
}x;
GLchar* uniformNames[]={"x.a"};
GLuint uniformIndices[1]={0};
现在,
glGetUniformIndices(programID, 1, &uniformNames, &uniformIndices);
-- 不返回 uniformIndices[]?我想我犯了一个我无法弄清楚的明显错误。请帮帮我。