b=750272; protect against raised Java-side exception when getting EGL Surface; r=blassey
This commit is contained in:
@@ -90,6 +90,9 @@ AndroidGLController::ProvideEGLSurface()
|
||||
ASSERT_THREAD();
|
||||
AutoLocalJNIFrame jniFrame(mJEnv);
|
||||
jobject jObj = mJEnv->CallObjectMethod(mJObj, jProvideEGLSurfaceMethod);
|
||||
if (jniFrame.CheckForException())
|
||||
return NULL;
|
||||
|
||||
return reinterpret_cast<EGLSurface>(mJEnv->GetIntField(jObj, jEGLSurfacePointerField));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user