mirror of
https://github.com/processing/processing4.git
synced 2026-02-15 03:15:40 +01:00
Basic app lifecycle / surface creation.
This commit is contained in:
@@ -342,6 +342,9 @@ public class Runner implements MessageConsumer {
|
||||
// No longer needed / doesn't seem to do anything differently
|
||||
//params.append("-Dcom.apple.mrj.application.apple.menu.about.name=" +
|
||||
// build.getSketchClassName());
|
||||
|
||||
// required for GLFW and Metal when using WebGPU
|
||||
params.append("-XstartOnFirstThread");
|
||||
}
|
||||
/*
|
||||
if (Platform.isWindows()) {
|
||||
@@ -380,6 +383,10 @@ public class Runner implements MessageConsumer {
|
||||
// http://processing.org/bugs/bugzilla/1188.html
|
||||
params.append("-ea");
|
||||
|
||||
// we need to open up access to internal jdk modules for libraries that use reflection
|
||||
// this will break at some point in the future when these modules are removed from the jdk :(
|
||||
params.append("--enable-native-access=ALL-UNNAMED");
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
@@ -508,6 +515,9 @@ public class Runner implements MessageConsumer {
|
||||
}
|
||||
*/
|
||||
|
||||
// TODO: excise AWT to make webgpu work properly
|
||||
params.append(PApplet.ARGS_DISABLE_AWT);
|
||||
|
||||
params.append(build.getSketchClassName());
|
||||
}
|
||||
// Add command-line arguments to be given to the sketch itself
|
||||
|
||||
Reference in New Issue
Block a user