[DESKTOP] Workaround RPI issue
This commit is contained in:
@@ -6,9 +6,17 @@ import com.kgurgul.cpuinfo.di.initKoin
|
||||
import com.kgurgul.cpuinfo.shared.Res
|
||||
import com.kgurgul.cpuinfo.shared.desktop_icon
|
||||
import org.jetbrains.compose.resources.painterResource
|
||||
import org.jetbrains.skia.DirectContext
|
||||
|
||||
fun main() {
|
||||
initKoin()
|
||||
if (System.getProperty("os.name") == "Linux") {
|
||||
try {
|
||||
DirectContext.makeGL().flush().close()
|
||||
} catch (e: Throwable) {
|
||||
System.setProperty("skiko.renderApi", "SOFTWARE")
|
||||
}
|
||||
}
|
||||
return application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
|
||||
Reference in New Issue
Block a user