Add eglGetCurrentContext() implementation in ShadowEGL14.

PiperOrigin-RevId: 503500116
diff --git a/robolectric/src/test/java/org/robolectric/shadows/ShadowEGL14Test.java b/robolectric/src/test/java/org/robolectric/shadows/ShadowEGL14Test.java
index e5d5c9d..4da4963 100644
--- a/robolectric/src/test/java/org/robolectric/shadows/ShadowEGL14Test.java
+++ b/robolectric/src/test/java/org/robolectric/shadows/ShadowEGL14Test.java
@@ -17,6 +17,11 @@
 @Config(minSdk = VERSION_CODES.LOLLIPOP)
 public final class ShadowEGL14Test {
   @Test
+  public void eglGetCurrentContext() {
+    assertThat(EGL14.eglGetCurrentContext()).isNotNull();
+  }
+
+  @Test
   public void eglGetDisplay() {
     assertThat(EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY)).isNotNull();
   }
diff --git a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowEGL14.java b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowEGL14.java
index 475607a..4f488b5 100644
--- a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowEGL14.java
+++ b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowEGL14.java
@@ -84,6 +84,11 @@
   }
 
   @Implementation
+  protected static EGLContext eglGetCurrentContext() {
+    return createEglContext(3);
+  }
+
+  @Implementation
   protected static boolean eglMakeCurrent(
       EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) {
     return true;