Skip to content

Commit

Permalink
Merge "Fixed issue with SyncFenceCompat on EGL15" into androidx-main
Browse files Browse the repository at this point in the history
  • Loading branch information
Nader Jawad authored and Gerrit Code Review committed Jun 7, 2023
2 parents 743014f + 5769c8e commit 61e3b9a
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,7 @@ internal class SyncFenceCompatVerificationHelper private constructor() {
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
@androidx.annotation.DoNotInline
fun createSyncFenceCompatV33(): SyncFenceCompat {
val display = EGL15.eglGetPlatformDisplay(
EGL15.EGL_PLATFORM_ANDROID_KHR,
EGL14.EGL_DEFAULT_DISPLAY.toLong(),
mEmptyAttributes,
0
)
val display = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY)
if (display == EGL15.EGL_NO_DISPLAY) {
throw RuntimeException("no EGL display")
}
Expand Down

0 comments on commit 61e3b9a

Please sign in to comment.