From: Andreas Eversberg Date: Tue, 17 Apr 2018 16:52:21 +0000 (+0200) Subject: OVR: Show more specific errors on init of eye textures X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=commitdiff_plain;h=b147da6dbf7ddebc04bcd180f9c2bfad9c22eebd OVR: Show more specific errors on init of eye textures --- diff --git a/src/libovr/ovr.c b/src/libovr/ovr.c index 80c5a85..338897e 100755 --- a/src/libovr/ovr.c +++ b/src/libovr/ovr.c @@ -172,7 +172,7 @@ int init_ovr(int _multisampling) result = ovr_CreateTextureSwapChainGL(session, &desc, &textureSwapChain[eye]); if (OVR_FAILURE(result)) { - print_error("ovr_CreateTextureSwapChainGL() failed!\n"); + print_error("ovr_CreateTextureSwapChainGL() failed! (error %d)\n", result); goto error; } @@ -214,7 +214,7 @@ int init_ovr(int _multisampling) /* Create mirror texture and an FBO used to copy mirror texture to back buffer */ result = ovr_CreateMirrorTextureWithOptionsGL(session, &desc, &mirrorTexture); if (!OVR_SUCCESS(result)) { - print_error("ovr_CreateMirrorTextureWithOptionsGL() failed!\n"); + print_error("ovr_CreateMirrorTextureWithOptionsGL() failed! (error %d)\n", result); goto error; }