mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
c/client: Port printfs to static u_logging.
This commit is contained in:
parent
34563276e8
commit
4acab28f3f
|
@ -194,7 +194,7 @@ xrt_gfx_provider_create_gl_egl(struct xrt_compositor_native *xcn,
|
|||
|
||||
if (!client_gl_compositor_init(c, xcn, sc_create)) {
|
||||
free(c);
|
||||
fprintf(stderr, "Failed to initialize compositor\n");
|
||||
U_LOG_E("Failed to initialize compositor");
|
||||
old_restore(&old);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -342,9 +342,9 @@ vk_format_to_gl(int64_t format)
|
|||
case 129 /*VK_FORMAT_D24_UNORM_S8_UINT*/: return GL_DEPTH24_STENCIL8;
|
||||
case 130 /*VK_FORMAT_D32_SFLOAT_S8_UINT*/: return GL_DEPTH32F_STENCIL8;
|
||||
default:
|
||||
printf("Cannot convert VK format 0x%016" PRIx64
|
||||
" to GL format!\n",
|
||||
format);
|
||||
U_LOG_W("Cannot convert VK format 0x%016" PRIx64
|
||||
" to GL format!\n",
|
||||
format);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "util/u_misc.h"
|
||||
#include "util/u_logging.h"
|
||||
|
||||
#include "xrt/xrt_gfx_xlib.h"
|
||||
|
||||
|
@ -57,13 +58,11 @@ client_gl_xlib_compositor_create(struct xrt_compositor_native *xcn,
|
|||
{
|
||||
gladLoadGL(glXGetProcAddress);
|
||||
|
||||
// @todo log this to a proper logger.
|
||||
#define CHECK_REQUIRED_EXTENSION(EXT) \
|
||||
do { \
|
||||
if (!GLAD_##EXT) { \
|
||||
fprintf(stderr, \
|
||||
"%s - Required OpenGL extension " #EXT \
|
||||
" not available\n", \
|
||||
U_LOG_E("%s - Required OpenGL extension " #EXT \
|
||||
" not available", \
|
||||
__func__); \
|
||||
return NULL; \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue