mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
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:
parent
cbc3ce5b03
commit
b9473bc99c
@ -241,7 +241,7 @@ realize (GtkWidget *widget)
|
|||||||
fragment_path = "/glarea/glarea-gl.fs.glsl";
|
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);
|
init_shaders (vertex_path, fragment_path, &program, &mvp_location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user