summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-02-27 13:18:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-27 13:18:07 +0000
commite4dae5f2c26f5992a31f8ce15811fc082647ddb8 (patch)
tree15e524b4c187326ab304273f07e99952094497ec /core
parent2000fe58332dffaad34c618fe35840992cb0f571 (diff)
parent64d38d9f4863f6e9434e6820b924eb958e8a2230 (diff)
downloadframeworks_base-e4dae5f2c26f5992a31f8ce15811fc082647ddb8.zip
frameworks_base-e4dae5f2c26f5992a31f8ce15811fc082647ddb8.tar.gz
frameworks_base-e4dae5f2c26f5992a31f8ce15811fc082647ddb8.tar.bz2
Merge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"
Diffstat (limited to 'core')
-rw-r--r--core/jni/android_opengl_EGL14.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_opengl_EGL14.cpp b/core/jni/android_opengl_EGL14.cpp
index bf65dfc..19e4d99 100644
--- a/core/jni/android_opengl_EGL14.cpp
+++ b/core/jni/android_opengl_EGL14.cpp
@@ -156,7 +156,7 @@ static jobject
android_eglGetDisplayInt
(JNIEnv *_env, jobject _this, jint display_id) {
- if (sizeof(void*) != sizeof(uint32_t)) {
+ if ((EGLNativeDisplayType)display_id != EGL_DEFAULT_DISPLAY) {
jniThrowException(_env, "java/lang/UnsupportedOperationException", "eglGetDisplay");
return 0;
}