summaryrefslogtreecommitdiffstats
path: root/opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-02-27 13:17:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-27 13:17:58 +0000
commit93e6a48b3e876708a8161a9946581f5e8ebb382f (patch)
treef3209e3a64b70c2badf55c70469bde174c734ab6 /opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp
parentc9bf3ba411c66dd1d977c81f1aca08109cbf8c86 (diff)
parentd61b48c090cf288e406db11f3106257643657ead (diff)
downloadframeworks_native-93e6a48b3e876708a8161a9946581f5e8ebb382f.zip
frameworks_native-93e6a48b3e876708a8161a9946581f5e8ebb382f.tar.gz
frameworks_native-93e6a48b3e876708a8161a9946581f5e8ebb382f.tar.bz2
Merge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"
Diffstat (limited to 'opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp')
-rwxr-xr-xopengl/tools/glgen/stubs/egl/eglGetDisplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp b/opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp
index 4c353a2..003efd3 100755
--- a/opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp
+++ b/opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp
@@ -14,7 +14,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;
}