mirror of https://github.com/mode777/rayjs.git
Fix promise-breaking bug
This commit is contained in:
parent
c410b28f83
commit
7036848ce6
|
@ -281,6 +281,7 @@ function main(){
|
|||
//destructor: "UnloadMaterial"
|
||||
}
|
||||
|
||||
getFunction(api.functions, "EndDrawing")!.binding = { after: gen => gen.call("app_update_quickjs", []) }
|
||||
ignore("SetWindowIcons")
|
||||
ignore("GetWindowHandle")
|
||||
|
||||
|
|
|
@ -1187,6 +1187,7 @@ function main() {
|
|||
},
|
||||
//destructor: "UnloadMaterial"
|
||||
};
|
||||
getFunction(api.functions, "EndDrawing").binding = { after: gen => gen.call("app_update_quickjs", []) };
|
||||
ignore("SetWindowIcons");
|
||||
ignore("GetWindowHandle");
|
||||
// Custom frame control functions
|
||||
|
|
|
@ -2378,6 +2378,7 @@ static JSValue js_beginDrawing(JSContext * ctx, JSValueConst this_val, int argc,
|
|||
|
||||
static JSValue js_endDrawing(JSContext * ctx, JSValueConst this_val, int argc, JSValueConst * argv) {
|
||||
EndDrawing();
|
||||
app_update_quickjs();
|
||||
return JS_UNDEFINED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue