[gtk/wip/baedert/for-master] glarea: Fix buffer initialization
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] glarea: Fix buffer initialization
- Date: Wed, 28 Aug 2019 08:06:50 +0000 (UTC)
commit 9958e2ec6f494031a5a17ae7f4480feede22697c
Author: Timm Bäder <mail baedert org>
Date: Wed Aug 28 10:05:48 2019 +0200
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
demos/gtk-demo/glarea.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/glarea.c b/demos/gtk-demo/glarea.c
index eed1e80ec3..21e88b63ae 100644
--- a/demos/gtk-demo/glarea.c
+++ b/demos/gtk-demo/glarea.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]