glarea: Fix buffer initialization

This only worked when the vao id and the buffer id accidentally matched,
for example when running gtk4-demo with --run=glarea

Fixes #2042
This commit is contained in:
Timm Bäder 2019-08-28 10:05:48 +02:00
parent cbc3ce5b03
commit b9473bc99c

View File

@ -241,7 +241,7 @@ realize (GtkWidget *widget)
fragment_path = "/glarea/glarea-gl.fs.glsl";
}
init_buffers (&position_buffer, NULL);
init_buffers (NULL, &position_buffer);
init_shaders (vertex_path, fragment_path, &program, &mvp_location);
}