incompatibility moment
This commit is contained in:
4
pog.cpp
4
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"
|
||||
|
||||
Reference in New Issue
Block a user