[waffle] [PATCH 17/17] examples/gl_basic: Update to use waffle_window_create2()
Chad Versace
chad.versace at intel.com
Sun Jan 4 14:03:10 PST 2015
Tested on GLX, X11/EGL, Wayland, and GBM.
Signed-off-by: Chad Versace <chad.versace at intel.com>
---
examples/gl_basic.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/examples/gl_basic.c b/examples/gl_basic.c
index 69418c8..6f57799 100644
--- a/examples/gl_basic.c
+++ b/examples/gl_basic.c
@@ -34,7 +34,7 @@
/// each buffer swap.
#define _POSIX_C_SOURCE 199309L // glibc feature macro for nanosleep.
-#define WAFFLE_API_VERSION 0x0103
+#define WAFFLE_API_VERSION 0x0106
#define WAFFLE_API_EXPERIMENTAL
#include <getopt.h>
@@ -628,7 +628,13 @@ main(int argc, char **argv)
if (!ctx)
error_waffle();
- window = waffle_window_create(config, window_width, window_height);
+ const intptr_t window_attrib_list[] = {
+ WAFFLE_WINDOW_WIDTH, window_width,
+ WAFFLE_WINDOW_HEIGHT, window_height,
+ 0,
+ };
+
+ window = waffle_window_create2(config, window_attrib_list);
if (!window)
error_waffle();
--
2.2.0
More information about the waffle
mailing list