support win32 changes for orca_gles_surface

This commit is contained in:
Reuben Dunnington 2023-08-03 22:11:03 -07:00
parent 5c87e6c6b0
commit 7f610fbcca
Signed by: rdunnington
GPG Key ID: 4EC5290E704FD482
3 changed files with 6 additions and 3 deletions

View File

@ -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

@ -1 +1 @@
Subproject commit 12fa7be765b139f41e45aa802b3e1558ba704fb9
Subproject commit a18040fee407a5ee6d11a3ccf17ea46059fcbc8e

View File

@ -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);
}