summaryrefslogtreecommitdiffstats
path: root/opengl/tools
diff options
context:
space:
mode:
authorAshok Bhat <ashok.bhat@arm.com>2014-02-13 11:08:25 +0000
committerAshok Bhat <ashok.bhat@arm.com>2014-02-20 19:56:50 +0000
commitfb913cdb47d5abfac55d6394084932fff597c8c5 (patch)
treed598d48242dcf2710c4464dbc05a2a1c86ec8a28 /opengl/tools
parent913a17fd5f8cabbc73ff46db15b4b53b9aeba7b8 (diff)
downloadframeworks_native-fb913cdb47d5abfac55d6394084932fff597c8c5.zip
frameworks_native-fb913cdb47d5abfac55d6394084932fff597c8c5.tar.gz
frameworks_native-fb913cdb47d5abfac55d6394084932fff597c8c5.tar.bz2
Update GLES codegen to be in sync with frameworks/base
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>
Diffstat (limited to 'opengl/tools')
-rw-r--r--opengl/tools/glgen/stubs/jsr239/GLCHeader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/tools/glgen/stubs/jsr239/GLCHeader.cpp b/opengl/tools/glgen/stubs/jsr239/GLCHeader.cpp
index cc10336..4743038 100644
--- a/opengl/tools/glgen/stubs/jsr239/GLCHeader.cpp
+++ b/opengl/tools/glgen/stubs/jsr239/GLCHeader.cpp
@@ -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");