Vertex shader error C5145: must write to gl_Position using QShaderProgram
问题 I am translating a Visual Studio C++ OpenGL project to a Qt project to implement a UI . I have all the code translated and I am using Qt classes to implement OpenGL part. The problem I am having now is that when I link the shaderProgram it throws me an error that says: Vertex info (0) : error C5145: must write to gl_Position I am implementing QOpenGLFunctions_4_1_Core and I debug the compile function to see if the code was well read and yes All the code is read and the compile function