c++ OpenGL glGetUniformLocation for Sampler2D returns -1 on Raspberry PI but works on Windows
问题 I'm making a crossplatform OpenGL program. However, I've encountered a problem, where glGetUniformLocation, which should return the location of a uniform variable in my shader program, returns -1, and it only occurs on Linux (Raspbian distro, ran on Raspberry PI), and on Windows the same code works perfectly! Here's my code: Load Shader program function: int shader, status; programID = glCreateProgram(); // Load vertex shader shader = LoadShaderFromString(GL_VERTEX_SHADER, Tools: