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