summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/hwui/jni/Shader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/jni/Shader.cpp b/libs/hwui/jni/Shader.cpp
index ad3fd552204e..1dc5cd99eed1 100644
--- a/libs/hwui/jni/Shader.cpp
+++ b/libs/hwui/jni/Shader.cpp
@@ -269,8 +269,9 @@ static jlong RuntimeShader_create(JNIEnv* env, jobject, jlong shaderBuilder, jlo
static inline int ThrowIAEFmt(JNIEnv* env, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
- return jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException", fmt, args);
+ int ret = jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException", fmt, args);
va_end(args);
+ return ret;
}
static void RuntimeShader_updateUniforms(JNIEnv* env, jobject, jlong shaderBuilder,