FINALLY A TRIANGLE JFC

This commit is contained in:
Ben
2019-01-10 23:55:27 +00:00
parent 5154c96b80
commit abd02b7f7a
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -129,7 +129,7 @@ int main(int argc, char** argv) {
// Binding buffer to GPU
glBindBuffer(GL_ARRAY_BUFFER, vbo);
// Copy vertex data to the vertex buffer already on the GPU
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * 3, vertices, GL_STATIC_DRAW);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * 6, vertices, GL_STATIC_DRAW);
// Load, compile, apply and link shader programs
if (!loadShader(readShader("shaders/simple.vert"), GL_VERTEX_SHADER , "simpleVert") ||