From 7f610fbcca9b66e6350dec50f0ca978594f71af0 Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Thu, 3 Aug 2023 22:11:03 -0700 Subject: [PATCH] support win32 changes for orca_gles_surface --- build.bat | 3 +++ milepost | 2 +- src/main.c | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.bat b/build.bat index ccd88f3..1fd58cb 100644 --- a/build.bat +++ b/build.bat @@ -32,6 +32,9 @@ if %target% == orca ( copy milepost\bin\milepost.dll bin copy milepost\bin\milepost.dll.lib bin + ::generate gl31 header and json spec + python3 scripts\gles_gen.py --spec milepost\ext\gl.xml --header sdk\gl31.h --json src\gles_api.json + ::generate wasm3 api bindings python3 scripts\bindgen.py core src\core_api.json^ --wasm3-bindings src\core_api_bind_gen.c diff --git a/milepost b/milepost index 12fa7be..a18040f 160000 --- a/milepost +++ b/milepost @@ -1 +1 @@ -Subproject commit 12fa7be765b139f41e45aa802b3e1558ba704fb9 +Subproject commit a18040fee407a5ee6d11a3ccf17ea46059fcbc8e diff --git a/src/main.c b/src/main.c index 9e62150..3e34b51 100644 --- a/src/main.c +++ b/src/main.c @@ -193,7 +193,7 @@ mg_surface orca_surface_canvas(void) .api = MG_CANVAS }; - mp_dispatch_on_main_thread_sync(orca_surface_callback, (void*)&data); + mp_dispatch_on_main_thread_sync(__orcaApp.window, orca_surface_callback, (void*)&data); return(data.surface); } @@ -205,7 +205,7 @@ mg_surface orca_surface_gles(void) .api = MG_GLES }; - mp_dispatch_on_main_thread_sync(orca_surface_callback, (void*)&data); + mp_dispatch_on_main_thread_sync(__orcaApp.window, orca_surface_callback, (void*)&data); return(data.surface); }