aboutsummaryrefslogtreecommitdiff
path: root/src/gpu
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2017-09-22 12:12:19 -0700
committerMarat Dukhan <marat@fb.com>2017-09-22 12:12:19 -0700
commitc7c0999e305ab26239412f3414da2d83819a92db (patch)
tree35a01651d6fbc8614e5e14c7c2d9d3e39217e6a4 /src/gpu
parentc1852c7fcd59cee561e3aad9fdd11456aa353ac4 (diff)
downloadcpuinfo-c7c0999e305ab26239412f3414da2d83819a92db.tar.gz
Compatibility with older Android NDK versions
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gles2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gles2.c b/src/gpu/gles2.c
index 90d5fe1..a7ce08a 100644
--- a/src/gpu/gles2.c
+++ b/src/gpu/gles2.c
@@ -63,6 +63,8 @@ struct libegl {
};
};
+typedef const GLubyte* (GL_APIENTRY *gl_get_string_t)(GLenum);
+
static const char gles2_function_names[] =
"glGetString\0";
@@ -71,7 +73,7 @@ static const char gles2_function_names[] =
struct libgles2 {
void* handle;
union {
- PFNGLGETSTRINGPROC get_string;
+ gl_get_string_t get_string;
void* functions[LIBGLES2_FUNCTION_COUNT];
};
};
@@ -138,7 +140,6 @@ failed:
bool cpuinfo_gpu_query_gles2(char gpu_name[restrict static CPUINFO_GPU_NAME_MAX]) {
bool success = false;
- EGLConfig* configs = NULL;
EGLDisplay display = EGL_NO_DISPLAY;
EGLSurface surface = EGL_NO_SURFACE;
EGLSurface previous_draw_surface = EGL_NO_SURFACE;