gles: Fix compile warnings. (#1070)

* gles: Fix compile warnings.

For 32 and 64-bit Visual Studio and the Android Q NDK.

* Fix formatting violations

Co-authored-by: spauls <spauls@qti.qualcomm.com>
This commit is contained in:
Sreelakshmi Haridas Maruthur
2021-05-18 11:10:24 -06:00
committed by GitHub
parent 17a0d09567
commit 6c8045911a
23 changed files with 136 additions and 210 deletions

View File

@@ -117,7 +117,8 @@ public:
_platform, "clGetGLContextInfoKHR");
if (GetGLContextInfo == NULL)
{
print_error(status, "clGetGLContextInfoKHR failed");
log_error("ERROR: clGetGLContextInfoKHR failed! (%s:%d)\n",
__FILE__, __LINE__);
return NULL;
}
@@ -128,7 +129,7 @@ public:
return NULL;
}
dev_size /= sizeof(cl_device_id);
log_info("GL _context supports %d compute devices\n", dev_size);
log_info("GL _context supports %zu compute devices\n", dev_size);
status =
GetGLContextInfo(properties, CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR,