diff options
author | Marat Dukhan <marat@fb.com> | 2017-10-23 15:14:30 -0700 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2017-10-23 15:14:30 -0700 |
commit | b1662f4f719fde65be2d4a072005e5e02b88d5fa (patch) | |
tree | 2b636619a0fb6700d53ba5c5722790e13820b78c | |
parent | 8bcf445c99cc7941dec3d9ecf272b5bd548e2805 (diff) | |
download | cpuinfo-b1662f4f719fde65be2d4a072005e5e02b88d5fa.tar.gz |
Fix minor bug in GPU name query on Android
-rw-r--r-- | src/gpu/gles2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gles2.c b/src/gpu/gles2.c index a7ce08a..07f5f72 100644 --- a/src/gpu/gles2.c +++ b/src/gpu/gles2.c @@ -228,7 +228,7 @@ bool cpuinfo_gpu_query_gles2(char gpu_name[restrict static CPUINFO_GPU_NAME_MAX] cpuinfo_log_debug("GL_VENDOR = \"%s\"", vendor); const char* renderer = (const char*) gles2.get_string(GL_RENDERER); - if (vendor == NULL) { + if (renderer == NULL) { cpuinfo_log_warning("failed to get GL_RENDERER for OpenGL ES2 context"); goto cleanup; } |