Skip to content

Commit 75bf744

Browse files
Jamie GennisAndroid (Google) Code Review
authored andcommitted
Merge "SurfaceTexture: fix updateTexImage JNI"
2 parents dd0c130 + 721bfaa commit 75bf744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/SurfaceTexture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static void SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz)
220220
if (err == INVALID_OPERATION) {
221221
jniThrowException(env, IllegalStateException, "Unable to update texture contents (see "
222222
"logcat for details)");
223-
} else {
223+
} else if (err < 0) {
224224
jniThrowRuntimeException(env, "Error during updateTexImage (see logcat for details)");
225225
}
226226
}

0 commit comments

Comments
 (0)