Why does glValidateProgram fail when no VAO is bound?
问题 I have a problem validating my shader program in LWJGL/OpenGL 3. I read the documentation, but I can't seem to find a reason why a VAO is needed when calling glValidateProgram. int program = glCreateProgram(); int vertexShader = glCreateShader(...); int fragmentShader = glCreateShader(...); // ... vertex and fragment shader loading, compiling, errorchecking ... glAttachShader(program, vertexShader); glAttachShader(program, fragmentShader); glBindAttribLocation(program, 0, "position");