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;
}
/* 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;
}