8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afb6f2c commit d7bf924Copy full SHA for d7bf924
android/src/main/java/com/cloudwebrtc/webrtc/utils/EglUtils.java
@@ -1,5 +1,7 @@
1
package com.cloudwebrtc.webrtc.utils;
2
3
+import android.os.Build;
4
+
5
import org.webrtc.EglBase;
6
7
public class EglUtils {
@@ -16,7 +18,10 @@ public class EglUtils {
16
18
*/
17
19
public static synchronized EglBase getRootEglBase() {
20
if (rootEglBase == null) {
- rootEglBase = EglBase.create();
21
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
22
+ rootEglBase = EglBase.createEgl10(EglBase.CONFIG_PLAIN);
23
+ else
24
+ rootEglBase = EglBase.create();
25
}
26
27
return rootEglBase;
0 commit comments