From c1cffa3755e6cb0c8bd4fa8ce377dfe09459815e Mon Sep 17 00:00:00 2001 From: XProger Date: Thu, 31 Jan 2019 12:02:47 +0300 Subject: [PATCH] minor fix --- src/platform/win/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/win/main.cpp b/src/platform/win/main.cpp index 2f4493b..cdeb8bc 100644 --- a/src/platform/win/main.cpp +++ b/src/platform/win/main.cpp @@ -669,6 +669,7 @@ void vrInit() { } void vrInitTargets() { + if (!hmd) return; uint32_t width, height; hmd->GetRecommendedRenderTargetSize(&width, &height); Core::eyeTex[0] = new Texture(width, height, TexFormat::FMT_RGBA);