summaryrefslogtreecommitdiff
path: root/opengl/tests/gl2_basic/gl2_basic.cpp
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtneygo@google.com>2017-04-14 09:22:32 -0600
committerJae Shin <jaeshin@google.com>2017-09-19 01:43:59 +0000
commita885c3a9cfb13cd6342f3c8a3f2134e0a190ac9c (patch)
treeb03c4f08fcd3dec6091e15dbdbf40d661693eeb0 /opengl/tests/gl2_basic/gl2_basic.cpp
parent136c4bc7ab20f5044e2ae3b1a893955efbd8cc8e (diff)
Print ImplementationANDROID extensions as well
Test: adb shell /system/bin/test-opengl-gl2_basic Now includes extension list from eglQueryStringImplementationANDROID Bug: 29940137 Merged-In: I7aae05f7dbc07a17f9d35fe93f929d9dfd8f0d55 Change-Id: I7aae05f7dbc07a17f9d35fe93f929d9dfd8f0d55 (cherry picked from commit e29ff8f973f7dacb9e263375962140911ae191e3)
Diffstat (limited to 'opengl/tests/gl2_basic/gl2_basic.cpp')
-rw-r--r--opengl/tests/gl2_basic/gl2_basic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/opengl/tests/gl2_basic/gl2_basic.cpp b/opengl/tests/gl2_basic/gl2_basic.cpp
index 9f8d166c7a..adcda0ca4b 100644
--- a/opengl/tests/gl2_basic/gl2_basic.cpp
+++ b/opengl/tests/gl2_basic/gl2_basic.cpp
@@ -30,6 +30,7 @@
#include <EGLUtils.h>
using namespace android;
+EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name);
static void printGLString(const char *name, GLenum s) {
// fprintf(stderr, "printGLString %s, %d\n", name, s);
@@ -46,7 +47,8 @@ static void printGLString(const char *name, GLenum s) {
static void printEGLString(EGLDisplay dpy, const char *name, GLenum s) {
const char *v = (const char *) eglQueryString(dpy, s);
- fprintf(stderr, "GL %s = %s\n", name, v);
+ const char* va = (const char*)eglQueryStringImplementationANDROID(dpy, s);
+ fprintf(stderr, "GL %s = %s\nImplementationANDROID: %s\n", name, v, va);
}
static void checkEglError(const char* op, EGLBoolean returnVal = EGL_TRUE) {