Skip to content

Commit

Permalink
fix SOFTWARE renderApi parsing on macOS (#599)
Browse files Browse the repository at this point in the history
SOFTWARE_FAST is not supported on macOS, so it should fallback to SOFTWARE_COMPAT
  • Loading branch information
kropp authored Oct 6, 2022
1 parent e3f4798 commit 044ea3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ object SkikoProperties {
internal fun parseRenderApi(text: String?): GraphicsApi {
when(text) {
"SOFTWARE_COMPAT" -> return GraphicsApi.SOFTWARE_COMPAT
"SOFTWARE_FAST", "DIRECT_SOFTWARE", "SOFTWARE" -> return GraphicsApi.SOFTWARE_FAST
"SOFTWARE_FAST", "DIRECT_SOFTWARE" -> return GraphicsApi.SOFTWARE_FAST
"SOFTWARE" -> return if (hostOs == OS.MacOS) GraphicsApi.SOFTWARE_COMPAT else GraphicsApi.SOFTWARE_FAST
"OPENGL" -> return GraphicsApi.OPENGL
"DIRECT3D" -> {
return if (hostOs == OS.Windows) GraphicsApi.DIRECT3D
Expand Down

0 comments on commit 044ea3b

Please sign in to comment.