Merge "Update GLES codegen to be in sync with frameworks/base"

This commit is contained in:
Narayan Kamath 2014-02-21 14:27:16 +00:00 committed by Gerrit Code Review
commit f56ae19999

View File

@ -182,7 +182,7 @@ getDirectBufferPointer(JNIEnv *_env, jobject buffer) {
if (array) { if (array) {
releasePointer(_env, array, buf, 0); releasePointer(_env, array, buf, 0);
} }
buf = buf + offset; buf = (char*)buf + offset;
} else { } else {
jniThrowException(_env, "java/lang/IllegalArgumentException", jniThrowException(_env, "java/lang/IllegalArgumentException",
"Must use a native order direct Buffer"); "Must use a native order direct Buffer");