The open source OpenXR runtime
0
fork

Configure Feed

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

targets/openxr/sdl2_hack: Port to static u_logging.

authored by

Lubosz Sarnecki and committed by
Jakob Bornecrantz
34563276 12a3a243

+4 -4
+4 -4
src/xrt/targets/openxr/oxr_sdl2_hack.c
··· 99 99 100 100 p->win = SDL_CreateWindow(title, x, y, w, h, window_flags); 101 101 if (p->win == NULL) { 102 - fprintf(stderr, "Failed to create window!\n"); 102 + U_LOG_E("Failed to create window!"); 103 103 return; 104 104 } 105 105 106 106 p->ctx = SDL_GL_CreateContext(p->win); 107 107 if (p->ctx == NULL) { 108 - fprintf(stderr, "Failed to create GL context!\n"); 108 + U_LOG_E("Failed to create GL context!"); 109 109 return; 110 110 } 111 111 ··· 115 115 // Setup OpenGL bindings. 116 116 bool err = gladLoadGL((GLADloadfunc)SDL_GL_GetProcAddress) == 0; 117 117 if (err) { 118 - fprintf(stderr, "Failed to load GL functions!\n"); 118 + U_LOG_E("Failed to load GL functions!"); 119 119 return; 120 120 } 121 121 ··· 276 276 xrt_instance_get_prober(xinst, &p->base.xp); 277 277 278 278 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { 279 - fprintf(stderr, "Failed to init SDL2!\n"); 279 + U_LOG_E("Failed to init SDL2!"); 280 280 return; 281 281 } 282 282 p->sdl_initialized = true;