| Index: widget/android/AndroidBridge.cpp |
| diff --git a/widget/android/AndroidBridge.cpp b/widget/android/AndroidBridge.cpp |
| index a1dd7089e66a967bd09d62eb1e7f805cfeee87e6..9773a07ea56153f0bd837eba975197f532062f03 100644 |
| --- a/widget/android/AndroidBridge.cpp |
| +++ b/widget/android/AndroidBridge.cpp |
| @@ -740,7 +740,8 @@ AndroidBridge::CreateEGLSurfaceForCompositor() |
| } |
| JNIEnv* const env = GetJNIForThread(); // called on the compositor thread |
| - return reinterpret_cast<EGLSurface>( |
| + return reinterpret_cast<EGLSurface>(mAPIVersion >= 20 ? |
| + env->GetLongField(eglSurface.Get(), jEGLSurfacePointerField) : |
| env->GetIntField(eglSurface.Get(), jEGLSurfacePointerField)); |
| } |