Improve compatibility with GLES back-end
This commit is contained in:
@@ -73,7 +73,9 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() {
|
||||
this.jvmArgs(
|
||||
"-DtakeScreenshot=true",
|
||||
"-DscreenshotPath=${outputDir.get().asFile}/$imageName.png",
|
||||
"-Dorg.openrndr.exceptions=JVM"
|
||||
"-Dorg.openrndr.exceptions=JVM",
|
||||
"-Dorg.openrndr.gl3.debug=true",
|
||||
"-Dorg.openrndr.gl3.delete_angle_on_exit=false"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,10 @@ dependencies {
|
||||
"demoImplementation"(main.output.classesDirs + main.runtimeClasspath)
|
||||
"demoImplementation"(libs.openrndr.application)
|
||||
"demoImplementation"(libs.openrndr.extensions)
|
||||
|
||||
if (DefaultNativePlatform.getCurrentOperatingSystem().isMacOsX) {
|
||||
"demoRuntimeOnly"(libs.openrndr.gl3.natives.macos.arm64)
|
||||
}
|
||||
"demoRuntimeOnly"(libs.openrndr.gl3.core)
|
||||
"demoRuntimeOnly"(libs.slf4j.simple)
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
package org.openrndr.extra.convention
|
||||
|
||||
import CollectScreenshotsTask
|
||||
import gradle.kotlin.dsl.accessors._a37e1a3c5785f18372ed85a4dc9bbdf6.testRuntimeOnly
|
||||
import org.gradle.accessors.dm.LibrariesForLibs
|
||||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import java.net.URI
|
||||
|
||||
val libs = the<LibrariesForLibs>()
|
||||
|
||||
@@ -49,6 +48,11 @@ kotlin {
|
||||
outputDir.set(project.file(project.projectDir.toString() + "/images"))
|
||||
dependsOn(compileTaskProvider)
|
||||
}
|
||||
dependencies {
|
||||
if (DefaultNativePlatform.getCurrentOperatingSystem().isMacOsX) {
|
||||
runtimeOnly(libs.openrndr.gl3.natives.macos.arm64)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testRuns["test"].executionTask {
|
||||
|
||||
Reference in New Issue
Block a user