diff --git a/src/glcontext_wgl.cpp b/src/glcontext_wgl.cpp index 88d87ac9..ce841509 100644 --- a/src/glcontext_wgl.cpp +++ b/src/glcontext_wgl.cpp @@ -43,7 +43,7 @@ namespace bgfx { wglMakeCurrent(m_hdc, m_context); GLenum err = glGetError(); - BX_WARN(0 == err, "wglMakeCurrent failed with GL error: 0x%04x.", err); + BX_WARN(0 == err, "wglMakeCurrent failed with GL error: 0x%04x.", err); BX_UNUSED(err); } void swapBuffers() @@ -322,7 +322,7 @@ namespace bgfx { wglMakeCurrent(m_hdc, m_context); GLenum err = glGetError(); - BX_WARN(0 == err, "wglMakeCurrent failed with GL error: 0x%04x.", err); + BX_WARN(0 == err, "wglMakeCurrent failed with GL error: 0x%04x.", err); BX_UNUSED(err); } else { diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index cddbf0a6..9344d9bd 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -2957,7 +2957,7 @@ RENDERDOC_IMPORT for (uint32_t eye = 0; eye < 2; ++eye) { - const HMD::Eye hmdEye = hmd.eye[eye]; + const HMD::Eye& hmdEye = hmd.eye[eye]; viewAdjust.un.val[12] = hmdEye.adjust[0]; viewAdjust.un.val[13] = hmdEye.adjust[1]; viewAdjust.un.val[14] = hmdEye.adjust[2]; diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index c424cad1..a218a2a1 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -4126,7 +4126,7 @@ namespace bgfx for (uint32_t eye = 0; eye < 2; ++eye) { - const HMD::Eye hmdEye = hmd.eye[eye]; + const HMD::Eye& hmdEye = hmd.eye[eye]; viewAdjust.un.val[12] = hmdEye.adjust[0]; viewAdjust.un.val[13] = hmdEye.adjust[1]; viewAdjust.un.val[14] = hmdEye.adjust[2];