OSDN Git Service

Update GLES codegen to be in sync with frameworks/base
authorAshok Bhat <ashok.bhat@arm.com>
Thu, 13 Feb 2014 11:08:25 +0000 (11:08 +0000)
committerAshok Bhat <ashok.bhat@arm.com>
Thu, 20 Feb 2014 19:56:50 +0000 (19:56 +0000)
Patch from synergydev with commit-id 01994c79 changed
core/jni/com_google_android_gles_jni_GLImpl.cpp in the
frameworks/base. However the corresponding code snippet
in frameworks/native was not updated. This patch addresses
the issue.

Change-Id: I89c3d88de832efc8cbbe682c8a7ff7dfbef99db3
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
opengl/tools/glgen/stubs/jsr239/GLCHeader.cpp

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