From dafa2fd7b3adc4c57682188985745f42e06890d9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 9 Mar 2021 16:19:17 +0100 Subject: [PATCH] missing CAP_VR guard --- sky.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sky.cpp b/sky.cpp index bd08396f..71be821b 100644 --- a/sky.cpp +++ b/sky.cpp @@ -138,7 +138,11 @@ void compute_skyvertices(const vector& sky) { void dqi_sky::draw() { if(!vid.usingGL || sky.empty()) return; + #if CAP_VR transmatrix s = (vrhr::rendering() ? vrhr::master_cview : cview()).T * inverse(sky_cview.T); + #else + transmatrix s = cview().T * inverse(sky_cview.T); + #endif for(int ed = current_display->stereo_active() ? -1 : 0; ed<2; ed+=2) { if(global_projection && global_projection != ed) continue;