From ae497c58bb6ae2d5b214d9e573b6819ff21725c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 25 Apr 2015 16:56:29 -0700 Subject: [PATCH] Fixed OVR build. --- src/renderer_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 9ab5dd00d..a0fdde315 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2261,8 +2261,8 @@ namespace bgfx { namespace gl config.OGL.Header.RTSize.h = m_resolution.m_height; # endif // OVR_VERSION > OVR_VERSION_043 config.OGL.Header.Multisample = 0; - config.OGL.Window = g_platformData.nwh; - config.OGL.DC = GetDC(g_platformData.nwh); + config.OGL.Window = (HWND)g_platformData.nwh; + config.OGL.DC = GetDC(config.OGL.Window); if (m_ovr.postReset(g_platformData.nwh, &config.Config, !!(m_resolution.m_flags & BGFX_RESET_HMD_DEBUG) ) ) { uint32_t size = sizeof(uint32_t) + sizeof(TextureCreate);