summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-Ericsson <void@stericsson.com>2011-12-12 15:24:51 +0100
committerPatrik Ryd <patrik.ryd@linaro.org>2011-12-13 16:11:13 +0100
commit90d35d48e7ee3826fcda0ab7db6a9913a15b6b98 (patch)
treea4c0f869062775b7d06c4bb1af3d4d3bcc568cf0
parent23f3ce6d510d99349077a091f87862e10a86ac08 (diff)
downloadbase-90d35d48e7ee3826fcda0ab7db6a9913a15b6b98.tar.gz
EGL: Reporting of extension string
When asking EGL for it's extension string it will return the string from the Android software implementation and not the string associated with the GPU thereby preventing well behaving software from utilizing such features as GPU fence sync objects. Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
-rw-r--r--opengl/libs/EGL/eglApi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 1f9ce68eef55..1eea0013e9a8 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -975,7 +975,10 @@ const char* eglQueryString(EGLDisplay dpy, EGLint name)
case EGL_VERSION:
return sVersionString;
case EGL_EXTENSIONS:
- return sExtensionString;
+ if (NULL != dp->disp[IMPL_HARDWARE].queryString.extensions)
+ return dp->disp[IMPL_HARDWARE].queryString.extensions;
+ else
+ return sExtensionString;
case EGL_CLIENT_APIS:
return sClientApiString;
}