diff --git a/pog.cpp b/pog.cpp index b7e94da..3ba8d92 100644 --- a/pog.cpp +++ b/pog.cpp @@ -49,7 +49,7 @@ int main() { // compiling the shaders const char *vertexShaderSource = "#version 330 core\n" - "layout (location = 0) in vec3 aPos;\n" + "in vec3 aPos;\n" "void main()\n" "{\n" " gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);\n" @@ -73,7 +73,7 @@ int main() { std::cout << "Vertex shader is gOOd!" << std::endl; const char *fragmentShaderSource = "#version 330 core\n" - "layout (location = 0) in vec3 aPos;\n" + "in vec3 aPos;\n" "out vec4 FragColor;\n" "void main()\n" "{\n"