The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/gl_client: Port to u_logging.

authored by

Lubosz Sarnecki and committed by
Ryan Pavlik
bd107095 e3df2f99

+6 -5
+6 -5
src/xrt/compositor/client/comp_gl_client.c
··· 27 27 28 28 #include "client/comp_gl_client.h" 29 29 30 + #include "util/u_logging.h" 31 + 30 32 #include <inttypes.h> 31 33 32 34 /*! ··· 339 341 if (info->array_size > 1) { 340 342 const char *version_str = (const char *)glGetString(GL_VERSION); 341 343 if (strstr(version_str, "OpenGL ES 2.") == version_str) { 342 - fprintf(stderr, 343 - "%s - only one array layer is supported with " 344 - "OpenGL ES 2\n", 345 - __func__); 344 + U_LOG_E( 345 + "Only one array layer is supported with OpenGL ES " 346 + "2"); 346 347 return XRT_ERROR_OPENGL; 347 348 } 348 349 } 349 350 350 351 int64_t vk_format = gl_format_to_vk(info->format); 351 352 if (vk_format == 0) { 352 - fprintf(stderr, "%s - Invalid format!\n", __func__); 353 + U_LOG_E("Invalid format!"); 353 354 return XRT_ERROR_VULKAN; 354 355 } 355 356