From 34563276e85b4a8c626b4f021b095611713152e4 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Thu, 17 Dec 2020 11:39:07 +0100 Subject: [PATCH] targets/openxr/sdl2_hack: Port to static u_logging. --- src/xrt/targets/openxr/oxr_sdl2_hack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xrt/targets/openxr/oxr_sdl2_hack.c b/src/xrt/targets/openxr/oxr_sdl2_hack.c index 316eed302..d944bad91 100644 --- a/src/xrt/targets/openxr/oxr_sdl2_hack.c +++ b/src/xrt/targets/openxr/oxr_sdl2_hack.c @@ -99,13 +99,13 @@ sdl2_window_init(struct sdl2_program *p) p->win = SDL_CreateWindow(title, x, y, w, h, window_flags); if (p->win == NULL) { - fprintf(stderr, "Failed to create window!\n"); + U_LOG_E("Failed to create window!"); return; } p->ctx = SDL_GL_CreateContext(p->win); if (p->ctx == NULL) { - fprintf(stderr, "Failed to create GL context!\n"); + U_LOG_E("Failed to create GL context!"); return; } @@ -115,7 +115,7 @@ sdl2_window_init(struct sdl2_program *p) // Setup OpenGL bindings. bool err = gladLoadGL((GLADloadfunc)SDL_GL_GetProcAddress) == 0; if (err) { - fprintf(stderr, "Failed to load GL functions!\n"); + U_LOG_E("Failed to load GL functions!"); return; } @@ -276,7 +276,7 @@ oxr_sdl2_hack_start(void *hack, struct xrt_instance *xinst) xrt_instance_get_prober(xinst, &p->base.xp); if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { - fprintf(stderr, "Failed to init SDL2!\n"); + U_LOG_E("Failed to init SDL2!"); return; } p->sdl_initialized = true;